Mapping Attributes with Connection Editor

Object Parameters in CityEngine can be controlled from various sources. The Connection Editor helps to create these attribute connections.

Connection Editor

To edit the connection on a specific attribute, locate the attribute in the Inspector, and choose → Connect Attribute... to start the Connection Editor.


Starting the Connection Editor for minArcRadius.


The Connection Editor displayed for attribute minArcRadius

Object attribute

Connect your attribute to an object attribute. This option is only available if

  1. the scene object has an object attribute with a matching name
  2. 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)

Shape parameter

Connect your attribute to the parent shape parameter. This option is only available if

  1. it is a rule file attribute
  2. the rule file is attached to a shape of an intersection, street, or block (a lot)
  3. the attribute has the same name as a shape parameter
  4. 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)

Layer attribute

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

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.

Resetting attributes

To reset a specific attribute, locate the attribute in the Inspector, and choose Rule default.


Reset attribute to its default.

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:

CGA Editor - Error
Attributes context menu

Parameter Function
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.