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 chooseto start the Connection Editor.
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.
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.
To reset a specific attribute, locate the attribute in the Inspector, and choose.
Depending on the attribute's 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).
Operations are available as well from a context menu. Right-click in the attribute area of a rule file to bring up the context menu:
|Reset user attributes||Reset all user-set attributes of this rule file to its default (Rule) values.|
|Reset all attributes||Reset all user-set and mapped attributes of this rule file to its default (Rule) values.|
Copyright ©2008-2017 Esri R&D Center Zurich. All rights reserved.