Use the Option Picker patch to set up values for an object, material or other element in your scene to take. You can add a minimum of 2 and maximum of 32 values.
To add or remove values, click and drag the bottom of the patch.
The type of value you can select depends on the data type selected.
An index (starting at zero) that represents the option to output.
You can add up to 32 option inputs.
The selected value.
In the example below, we see the object take one of three different colors when the screen is tapped.
We achieved this with the graph below:
To do this:
We connected the Count output on the Counter patch to the Option input on the Option Picker patch.
On the Option Picker patch, we entered three color values in the top three fields.
The selected value is displayed numerically in the Option field, with 0 representing the first color value in the list.
On the Counter patch, we set the Maximum Count to 3. This ensures only the top three values on the Option Picker patch can be used in the effect.
Finally, we connected the output on the Option Picker patch to the Base Color Texture input on the object material patch. This allows the object material to take the selected value whenever a screen tap is detected.