Mapping Attributes with Connection Editor
Object Parameters in CityEngine can be controlled from various sources. The Connection Editor helps to create these attribute connections.
To edit the connection on a specific attribute, locate the attribute in the Inspector, and click on the connection icon to start the Connection Editor.
Default valueReset the attribute to it's default value. Depending on the attributes type this will reset to the default value of the algorithm (e.g. Street Shape creation) or to the default value from the rule file (Rule Parameter).
Use the user-defined value on your attribute. If a user value has been set earlier, the old value is used, otherwise the current value will be set as user value.
Setting a user value is normally done by entering a value directly in the Inspector.
Connect your attribute to an object attribute. This option is only available if
- the scene object has an object attribute with a matching name
- the type of the object attribute matches the required type of the attribute (e.g. streetWidth requires a float or int type, whereas a string type won't work)
Connect your attribute to the parent shape parameter. This option is only available if
- it is a rule file attribute
- the rule file is attached to a shape of an intersection, street, or block (a lot)
- the attribute has the same name as a shape parameter
- the type of the shape parameter matches the required type of the attribute (e.g. streetWidth requires a float or int type, whereas a string type won't work)
Connect your attribute to Layer Attributes from arbitrary layers. Choose the source layer from the upper dropdown menu, and the desired Layer Attribute from the lower dropdown menu.
Each layer will provide a list of its available layer attributes, consisting of
- Channel attributes for Map Layers: the color channels (red, blue, green, alpha, brightness, ...) of the layers image. Marked as (Map Channel).
- Object attributes: Object attributes of objects in the source layer. Marked as (Object attribute).
- Other attributes: Existing expressions or mappings. Marked as (Layer attribute) or (Expression).
Layer connections are shared for all objects per layer, means you will change the behaviour for all connected attributes in this layer that share the same name.
If a layer attribute with the same name as your attribute already exists, be aware that your new mapping might override the existing one.
Copyright ©2008-2016 Esri R&D Center Zurich. All rights reserved.