Reference Array Switch

 
 
 

Category: Processing > Switch

Shader Family: Texture

Output: Reference

This shader allows you to create an array of references whose evaluation is based on an integer switch (input). The evaluation is performed as follows:

All of the parameters can be animated or driven by another shader in the render tree. You can also bypass this property editor and create input ports using a render tree workflow exclusively. For more information, see Adding Shader Nodes to the Render Tree [Materials and Shaders].

Name

The name of the shader node displayed in the render tree. Enter any name you like, or leave the default.

input

Accepts an integer value that controls which Item's value gets evaluated.

default

Sets the default reference to use when the input does not match the index of any of the Items.

Values

Add

Create an Item group that consists of a color value and an integer index (for matching). You can add as many Item groups as you need for the effect.

Clear

Removes all Item groups from the list.

Item

item

Click the Edit Array Item icon (the " blue socket") to open a pop-up menu with the following commands:

Remove: Deletes the Item group from the list. Once an Item is removed from the list, it no longer influences the effect.

Move Up/Move Down: Promotes or demotes the Item group. The position of an Item in the list indicates its order of evalution.

index

An integer value. When the input matches this index, the value for this Item is output through the render tree.

value

Sets the reference to use when the input matches the index for this Item.