5.3 Dynamically Transforming Shapes with Element Properties and Custom Scripts

When an element has been linked to a shape, it can be dynamically updated based on condition, an element attribute, or by using NOC Script.

5.3.1 Binding a Condition Gradient Effect to a Shape Fill or Border

To attach a condition gradient fill to a shape’s background or border:

  1. Do one of the following:

    • To apply to the shape’s fill, right-click the line or shape and select Customize > Add Binding > Condition Gradient > Fill. The Fill dialog box opens.

    • To apply to the shape’s border, right-click the line or shape and select Customize > Add Binding > Condition Gradient > Stroke. The Stroke dialog box opens.

  2. Specify the position beginning point of the gradient effect by selecting the desired GradientSTART radio button.

  3. Specify the position ending point of the gradient effect by selecting the desired GradientSTOP radio button.

  4. Click OK.

5.3.2 Updating Fill/Stroke with Element Condition, Element Attribute or Custom Bind

To update fill based on element condition, attribute or with a custom script:

  1. Do one of the following:

    • To update fill, right-click the line or shape and select Customize > Add Binding > Fill. The Fill dialog box opens.

    • To update stroke, right-click the line or shape and select Customize > Add Binding > Stroke. The Stroke dialog box opens.

  2. Do one of the following:

    • To bind using element condition, select the Element Property radio button.

      Select one of the condition options from the drop-down list.

    • To bind using an element attribute, select the Element Attribute radio button.

      Specify the element property name in the field provided.

    • To create a custom bind, enter the script in the FormulaScript field.

  3. Click OK.

5.3.3 Updating Opacity with a Custom Bind

To update shape opacity:

  1. Right-click the line or shape and select Customize > Add Binding > Opacity. The Opacity dialog box opens.

  2. Enter the script in the FormulaScript field.

  3. Click OK.

5.3.4 Updating Stroke-Width with a Custom Bind

To update stroke width:

  1. Right-click the line or shape and select Customize > Add Binding > Stroke-Width. The Stroke-Width dialog box opens.

  2. Enter the script in the FormulaScript field.

  3. Click OK.