Set To Array
Last updated
Last updated
The Token set to token array node converts a hierarchical token set structure into a flat array of individual tokens. It transforms nested token collections into a simple list that can be processed by nodes that expect token arrays.
Token Set
A hierarchical collection of design tokens
Object
Yes
Tokens
A flat array of all tokens from the input set
List
Drag the Token set to token array node into your graph.
Connect a token set object to the "Token Set" input.
The node will flatten the hierarchical structure and output all tokens as a simple array.
Use the resulting token array with nodes that process individual tokens.
This node preserves all token information including name, value, and type.
The resulting array contains all tokens regardless of their original nesting level.
Particularly useful when working with external token formats that use hierarchical structures.
Array to Set: For converting in the opposite direction.
Flatten: For more advanced flattening operations on token arrays.
Processing External Tokens: Convert imported token sets into a format that can be processed by the graph.
Token Transformation: Prepare tokens from a nested structure for batch operations.
Token Analysis: Create a flat list of all tokens for inspection or validation.