Shape property

If you want to animate a shape based on custom shape properties that have been assigned directly to the shape, select Shape property in the Trigger dropdown.

Then define the condition to be applied to the shape with the fields Condition, Function and Value so that the behavior rule takes effect.

Define properties

You can define custom shape properties for each shape in the shape library. To do this, follow the below steps:

  1. In the shape editor, select the corresponding shape in the shape library and then go to the Properties tab.

  2. Click Add Property to create a new property.

  3. Give the new property a meaningful name and select the data type of the new property under Type.

  4. Unlike other settings you can make on shapes, the changes you make to the custom shape properties are saved automatically.

Set properties

Once you place a shape with custom shape properties on a schematic, you can set these properties individually for each placed shape in the Properties sidebar.

Data point condition

If you define a data point condition in the same behavior rule, the rule is only triggered if a data point is placed on it and the condition applies.

Notes regarding the Value input field

  • If you use a shape property of type Color as your trigger, set Action Type to Set shape attribute and select either fill or stroke as the Attribute, the effective value is directly taken from the shape property (or the test value in the simulator).

  • If you use a shape property of type Number or String as your trigger, set Action Type to Set shape attribute and select either fill or stroke to set a specific color, the value of the shape property will be used to check the condition, but the color from the Value input field is actually applied to the shape when the condition is met.

  • If you use a shape property of type Number as your trigger and set Action Type to any of the transformation actions (Translate, Scale, Rotate or Flash), the value is taken from the shape property (or the test value in the simulator) and will be transformed according to the parameters in the Value input field. For further information about the transformation expression, see Translate, Scale or Rotate. This will not work with shape properties of type Color or String.

  • In all other cases that are not mentioned above, the value in the Value input field will be ignored, and the effective value will always be taken from the shape property (or the test value in the simulator).