Set Variant

The Ultimate Houdini node reference

Visit the Node Bible

To learn more, please log in or sign up for free to explore the Node Bible.
Write your awesome label here.

Set Variant

Write your awesome label here.
Selects (switches to) one of the variants stored in a variant set on a primitive.

Houdini Docs: https://www.sidefx.com/docs/houdini/nodes/lop/setvariant.html

USD allows storing multiple named variants of a primitive on the primitive. Each variant can have different attributes, relationships, and children. You can switch the primitive between different variants in different layers. Each primitive can store multiple groups of variants in named variant sets. See Variant Set in Pixar USD glossary.

This node switches the currently selected variant in a variant set. To create variants, use the Add Variant node.
Drag to resize

Visual Guides To Building Variants:

Parameters:


Number of Variants: You can perform multiple variant selections in a single Set Variant node. 

Primitives: The primitive(s) the node should operate on. 

Choose Variant Set by Index: When this is on, you specify the variant set using a number representing the index of a variant set in the alphabetically sorted list of variant sets, rather than a name.

Variant Set: The name of the variant set to select a variant from.

Variant Set Index: When Choose variant set by index is on, the index of the variant set (in an alphabetically sorted list of variant sets on the primitive).

Choose Variant Name by Index
: When this is on, you specify the variant using a number representing the index of a variant in the alphabetically sorted list of variants, rather than a name. 

Variant Name: If not choosing the variant by index, this parameter is the name of the variant that should be selected within the specified variant set. 

Variant Name Index: If choosing the variant by index, this parameter specifies the variant to select as an index into the alphabetically sorted list of variants in the variant set.


Drag to resize