Behavior : Boundary

Author:Rex.Rainbow

Download

Properties

Mode

  • Clamp or wrap the position of instance.
    • Options : ["Clamp","Wrap","Mod wrap"]

Align

  • Align at origin or boundaries of instance. Only used for clamp or wrap mode.
    • Options : ["Origin","Boundaries"]

Horizontal

  • Enable if you wish this to begin at the start of the layout.
    • Options : ["No","Yes"]

Left

  • Left boundary.

Right

  • Right boundary.

Vertical

  • Enable if you wish this to begin at the start of the layout.
    • Options : ["No","Yes"]

Top

  • Top boundary.

Bottom

  • Bottom boundary.

Actions

Enable boundary

Action:Horizontal boundary enable

  • Enable the object's horizontal boundary.
    • Horizontal ( Combo ) : Enable the horizontal boundary.
      • Options : ["No","Yes"]

Action:Vertical boundary enable

  • Enable the object's vertical boundary.
    • Vertical ( Combo ) : Enable the vertical boundary.
      • Options : ["No","Yes"]

Set boundary

Action:Set horizontal boundary

  • Set the object's horizontal boundary.
    • Left ( number ) : Left boundary.
    • Right ( number ) : Right boundary.

Action:Set vertical boundary

  • Set the object's vertical boundary.
    • Top ( number ) : Top boundary.
    • Bottom ( number ) : Bottom boundary.

Set boundary to object

Action:Set horizontal boundary to

  • Set the object's horizontal boundary.
    • Pin to ( object ) : Choose the object to pin to.
    • Left ( number or string ) : Name or number of image point for left boundary.
    • Right ( number or string ) : Name or number of image point for right boundary.

Action:Set vertical boundary to

  • Set the object's vertical boundary.
    • Pin to ( object ) : Choose the object to pin to.
    • Top ( number or string ) : Name or number of image point for top boundary.
    • Bottom ( number or string ) : Name or number of image point for bottom boundary.

Expressions

Boundary

Expression:LeftBound

  • Left boundary setting.

Expression:RightBound

  • Right boundary setting.

Expression:TopBound

  • Top boundary setting.

Expression:BottomBound

  • Bottom boundary setting.

Enable

Expression:HorizontalEnable

  • Horizontal boundary enable setting.

Expression:VerticalEnable

  • Vertical boundary enable setting.

Persentage

Expression:HorPercent

  • Get horizontal position persentage. 0 is at left boundary, 1 is at right boundary

Expression:VerPercent

  • Get vertical position persentage. 0 is at top boundary, 1 is at bottom boundary

Position

Expression:HorPercent2PosX

  • Get position X by percentage of horizontal boundaries
    • Percentage ( number ) : Percentage between 0 to 1.

Expression:VerPercent2PosY

  • Get position X by percentage of vertical boundaries
    • Percentage ( number ) : Percentage between 0 to 1.

Scaled value

Expression:HorScale

  • Get horizontal scaled value between left and right value
    • Left ( number ) : Left value.
    • Right ( number ) : Right value.

Expression:VerScale

  • Get vertical scaled value between top and bottom value
    • Top ( number ) : Minimum value.
    • Bottom ( number ) : Maximum value.

Conditions

Hit

Condition:On hit any boundary

  • Triggered when object hit any boundary.

Condition:On hit left boundary

  • Triggered when object hit left boundary.

Condition:On hit right boundary

  • Triggered when object hit right boundary.

Condition:On hit top boundary

  • Triggered when object hit top boundary.

Condition:On hit bottom boundary

  • Triggered when object hit bottom boundary.

Condition:Is hit boundary

  • Return true if object hit any boundary.
    • Boundary ( Combo ) : Enable the horizontal boundary.
      • Options : ["Any","Left","Right","Top","Bottom"]