Plugin : Inst Group
Author:Rex.Rainbow
- A set/list to store instances by uid
Download
Expressions
Group
Expression:InstCnt
- Get item count of group.
- Group ( string ) : Group name.
Expression:RandomIndex
- Get random item index of a group.
- Group ( string ) : Group name.
JSON
Expression:GroupToString
- Transfer group to JSON string.
- Group ( string ) : Group name.
Expression:AllToString
- Transfer all groups to JSON string.
List
Expression:UID2Index
- Get index by UID. Return (-1) if this UID is not in the group.
- Group ( string ) : Group name.
- UID ( number or string ) : The UID of instance.
Expression:Index2UID
- Get UID by index. Return (-1) if index is not in the group.
- Group ( string ) : Group name.
- Index ( number ) : The index of group.
Expression:Pop
- Pop UID by index. Index=-1 is the last one.
- Group ( string ) : Group name.
- Index ( number ) : Pop index.
Expression:FirstUID
- Get first UID in a group. Return (-1) group is empty.
- Group ( string ) : Group name.
Expression:LastUID
- Get last UID in a group. Return (-1) group is empty.
- Group ( string ) : Group name.
Expression:RandomIndex2UID
- Get UID by random index. Return (-1) if index is not in the group.
- Group ( string ) : Group name.
Expression:RandomPop
- Pop UID by random index.
- Group ( string ) : Group name.
List: For each
Expression:Item
- Get UID in a group. Used in "Condition:For each UID".
- Variable ( string ) : Variable name to store UID.
Expression:Index
- Get index in a group. Used in "Condition:For each UID"
- Variable ( string ) : Variable name to store UID.
List: Sort function
Expression:CmpUIDA
- Get Instance UID A of sorting function. Used in "Action: Sort group by function"
Expression:CmpUIDB
- Get Instance UID B of sorting function. Used in "Action: Sort group by function"
Mapping function
Expression:MapUID
- Get Instance UID of mapping function. Used under callback "Condition:On mapping"
Private group
Expression:PrivateGroup
- Get instance's private group name.
- UID ( number or string ) : Group name.
- Group ( string ) : Group name.
Conditions
Group
Condition:UID in group
- Testing if UID is in a group.
- UID ( number or string ) : The UID of instance to be tested.
- Group ( string ) : Group name.
Condition:Empty
- Testing if group is empty.
- Group ( string ) : Group name.
Group: Set operation
Condition:Is a subset
- Test if group is a subset of another group.
- Subset ( string ) : Group name.
- Main set ( string ) : Group name.
List
Condition:For each UID
- Repeat the event for each UID in a group.
- Variable ( string ) : Variable name to store UID.
- Group ( string ) : Group name.
List: Sort
Condition:On sorting
- Triggered when sorting by function.
- Function ( string ) : Sorting function name.
Mapping function
Condition:On mapping
- Triggered it to get mapping result.
- Function ( string ) : Mapping function name.
SOL
Condition:Pick instances
- Pick instances from group.
- Group ( string ) : Group name.
- Object ( object ) : Object for picking
- Operation ( Combo ) : Keep or pop
SOL - Mapping function
Condition:Pop by mapping result
- Get or pop one instance from group by the result of mapping function.
- Group ( string ) : Group name.
- Object ( object ) : Object for picking
- Operation ( Combo ) : Keep or pop
- Mapping ( string ) : Function name of mapping.
- Value type ( Combo ) : Minimum or maximim
- Options : ["minimum","maximum"]
SOL: List
Condition:Pop one instance
- Get or pop one instance from group.
- Group ( string ) : Group name.
- Index ( number ) : Pop index.
- Object ( object ) : Object for picking
- Operation ( Combo ) : Get or pop
Condition:Pop random instance
- Get or pop one random instance from group.
- Group ( string ) : Group name.
- Object ( object ) : Object for picking
- Operation ( Combo ) : Get or pop