This node offers an assortment of list modification functions. The node has both Unary and Binary modes.
- In Unary mode it will use the input of either sockets, it will use data1 first, then check data2
- If both are linked data1 is used.
- The node will draw the name of the current mode into the node header, useful for minimized nodes.
Modes | inputs | Behaviour Description |
---|---|---|
Set | unary | turns the valid input into a set :
|
Ordered Set by input | unary | only unique numbers but ordered by the original input sequence :
|
Unique Consecutives | unary | no consecutive repeats :
|
Sequential Set | unary | unique input values, ordered by their value :
|
Sequential Set Rev | unary | unique input values, ordered by their value, reversed :
|
Normalize | unary | scales down the values in the list to the range -1.0 .. 1.0 |
Accumulating Sum | unary | see
|
Mask Subset | binary | generates a mask to indicate for each value in A whether it appears in B :
|
Intersection | binary | returns the set of items that appear in both A and B |
Union | binary | returns the set of items A joined with B |
Difference | binary | returns the set of items from A that don’t appear in B |
Symmetric Diff | binary | returns the set of elements of A and B that don’t appear in Both |
- output as list
The boolean switch to output as list will be on by default, essentially it will wrap the output as a list because true sets don’t have a defined order (which we do need most of the time).
See the pullrequest for details : #884
also see the original thread : #865