Behavior : Tree node

Author:Rex.Rainbow

Download

Properties

Actions

Child

Action:Create child

  • Create child instance.
    • Object ( object ) : Object type.
    • X ( number ) : X co-ordinate.
    • Y ( number ) : Y co-ordinate.
    • Layer ( layer ) : Layer name of number.

Action:Add children

  • Add children instance.
    • Object ( object ) : Object type.

Action:Add children by UID

  • Add children by UID.
    • UID ( number ) : Child UID.

Parent

Action:Assign parent

  • Assign parent instance.
    • Object ( object ) : Object type.

Action:Assign parent by UID

  • Assign parent by UID.
    • UID ( number ) : Parent UID.

SOL

Action:Pick children

  • Pick children.
    • Group ( string ) : Put result in this group
    • Children type ( Combo ) : Children and grandson.
      • Options : ["children","children and grandson"]

Action:Pick parent

  • Pick parent.
    • Group ( string ) : Put result in this group

Action:Pick sibling

  • Pick sibling.
    • Group ( string ) : Put result in this group

Action:Pick root

  • Pick root.
    • Group ( string ) : Put result in this group

Setup

Action:Set instance group

  • Set instance group object.
    • Group ( object ) : Instance group object

Tree

Action:Remove

  • Remove this node from tree.

Expressions

Children

Expression:FirstChildUID

  • Get first child UID of this node. (-1) means that it does not have any child.

Expression:LastChildUID

  • Get last child UID of this node. (-1) means that it does not have any child.

Count

Expression:ChildrenCount

  • Get children count of this node.

Expression:SiblingCount

  • Get sibling count of this node.

Parent

Expression:ParentUID

  • Get parent UID of this node. (-1) means that it does not have parent.

Expression:RootUID

  • Get root UID of this node.

Sibling

Expression:FirstSiblingUID

  • Get first sibling UID of this node. (-1) means that it does not have any sibling.

Expression:LastSiblingUID

  • Get last sibling UID of this node. (-1) means that it does not have any sibling.

Conditions

Tree

Condition:Is root

  • Return true if this node is the root.

Condition:Has child

  • Return true if this node has any child.

Condition:Has sibling

  • Return true if this node has any sibling.