|On this page|
This node can be used to expand ether an upstream item’s output file list, array attribute value, or a partition into multiple work items. Example use cases:
A work item has 30 output files associated with it, and you'd like to create a new work item for each of those 30 files.
A partition has some number of work items in it, and you'd like to create a new work item for each group of 5 items in the partition.
A work item has an attribute with multiple values in it, and you wish to do some processing on each value in separate work item.
The size of the expanded group of work items. For example if Expansion Type
is set to a Fixed Count of 3 and there are 12 items in the partition being
When Apply Expansion To is set to Upstream Attribute, work items are created for each value in the specified upstream attribute. This attribute will contain the value from that slice of that array associated with each work item in this node. For other expansion types, this attribute is not set.
Note that the name of this attribute can be changed by setting a custom value using the Value Attribute parameter.
Determines when this node will generate work items. You should generally leave this set to “Automatic” unless you know the node requires a specific generation mode, or that the work items need to be generated dynamically.
All Upstream Items are Generated
This node will generate work items once all of the input nodes have generated their work items.
All Upstream Items are Cooked
This node will generate work items once all of the input nodes have cooked their work items.
Each Upstream Item is Cooked
This node will generate work items each time a work item in an input node is cooked.
The generation mode is selected based on the generation mode of the input nodes. If any of the input nodes are generating work items when their inputs cook, this node will be set to Each Upstream Item is Cooked. Otherwise, it will be set to All Upstream Items are Generated.
Apply Expansion To
Determines what will be expanded.
Upstream Output Files
For each upstream work item, expands the output files into more work items.
Items in Upstream Partitions
For each upstream partition, expands the items in the partition into more work items.
For each upstream work, expands the attribute specified in the Source Attribute
parameter into more work items. Each work item in this node will have an
expandvalue attribute that contains a slice of the values from the expanded
Note: This also works with iterable Python Object attributes.
When Apply Expansion To is set to Upstream Attribute, this parameter specifies the name of the attribute that should be used when expanding work items. The attribute should be an array with a length greater than q, since a work item will be created for each value in the attribute.
When Apply Expansion To is set to Upstream Attribute, this parameter determines the name of the attribute that will be created and set to the expanded value(s) associated with the work item.
Expand as Work Item IDs
When on, the integer values in the attribute are interpreted as work item IDs. The list of work item IDs in the attribute are also expanded into this node as real work items.
This parameter is only available when Apply Expansion To is set to Upstream Attribute.
Include Expected Output Files
When Apply Expansion To is set to Upstream Output Files, this toggle controls whether or not the expansion should also include upstream expected outputs in addition to regular output files. By default, expected output files are not included.
Determines the relationship between the elements being expanded and the new work items.
One to One
A new work item will be created for each upstream file or for each work item in the upstream partition.
The upstream files or partitioned items will be put into fixed size groups based on Value, a new work item will be created for each of those groups.
The upstream files or partitioned items will be distributed amongst a fixed number of groups based on Value, a new work item will be created for each of those groups.
The first N upstream files or partitioned items will be expanded back into individual work items. The value of N is determined by the Value parameter.
The last N upstream files or partitioned items will be expanded back into individual work items. The value of N is determined by the Value parameter.
When using an expansion type other than One to One, this parameter determines the way the upstream elements are grouped.
Preserve Source Index
When this toggle is enabled the work item index is set to the index of the upstream partition or output file that was used for expansion.
Set Work Item Frame
When this toggle is enabled, the expanded work items have their frame set based on their position within the list of expanded items.
Determines the starting frame and frame step size, when Set Work Item Frame is enabled. The work item’s frame will be set to
step*expansion_index + start.