Plugin : Grid freezer

Author:Rex.Rainbow

Download

Properties

Initial state

  • Whether to initially have the object enabled or disabled.
    • Options : ["Disabled","Enabled"]

Save mode

  • Save all properties of each instance, or save it manually.
    • Options : ["All properties","Manual"]

Actions

Define mask

Action:Clean

  • Clean mask.

Action:Fill a rectangle

  • Fill a rectangle mask.
    • Left-top X ( number ) : Logical X position of Left-top point related by origin point.
    • Left-top Y ( number ) : Logical Y position of Left-top point related by origin point.
    • Width ( number ) : Witdh of area.
    • Height ( number ) : Height of area.

Action:Flood fill

  • Flood fill the mask. This action need to have rex_SquareTx or rex_HexTx object.
    • Range ( number ) : Range of filled.

Enable

Action:Set enabled

  • Set whether this object is enabled.
    • State ( Combo ) : Set whether to enable or disable the behavior.
      • Options : ["Disabled","Enabled"]

Extra data

Action:Set extra data

  • Set extra data. Used in "condition:On save".
    • Index ( number or string ) : Index of extra data, can be number of string
    • Value ( number or string ) : Value of extra data

Global data

Action:Set global data

  • Set global data.
    • Index ( number or string ) : Index of extra data, can be number of string
    • Value ( number or string ) : Value of extra data

Import

Action:Import grids

  • Import grids data.
    • Grids data ( string ) : Grids data exported before.

Load

Action:Load all instances

  • Load all instances.

Masked area

Action:Clean

  • Clean Masked area.

Put

Action:Put mask

  • Put mask at physical position.
    • X ( number ) : The physical X position of origin point.
    • Y ( number ) : The physical Y position of origin point.

Save

Action:Save all

  • Save all target instances into grids.

Setup

Action:Setup layout

  • Setup layout for flood filling.
    • Layout ( object ) : Layout to get neighbors

Target

Action:Add object to target

  • Add an object or family to target automatically.
    • Object ( object ) : Object type.

Expressions

Export

Expression:GridData

  • Export the grids data.

Extra data

Expression:ExtraData

  • Get extra data. Used in "condition:On load". Add 1st parameter for key, add 2nd parameter for default value.

For each

Expression:CurLX

  • Current Logical X in a For Each loop.

Expression:CurLY

  • Current Logical Y in a For Each loop.

Expression:CurPX

  • Current Physical X in a For Each loop.

Expression:CurPY

  • Current Physical Y in a For Each loop.

Global data

Expression:GlobalData

  • Get global data. Used in "condition:On load". Add 1st parameter for key, add 2nd parameter for default value.

Load

Expression:LoadInstUID

  • Get UID of current loaded instance. Used in "condition:On load".

Conditions

Load

Condition:On load

  • Triggered when load object from grid.

Masked area

Condition:For each masked LXY

  • Repeat the event for each logic position of masked area.

Save

Condition:On save

  • Triggered when save object into grid.
    • Object ( object ) : Object type.