Generic switch node
Posted: Wed Feb 26, 2020 2:33 pm
Hi,
This is a script node for Octane Standalone implementing a generic "Switch" functionality.
This node lets you create a selector between multiple variants. You can have several cameras or several geometries or several materials, etc. and change the one that is actually used in the scene by setting the "Selected option" variable. This avoids constantly disconnecting and reconnecting nodes when you need to go back and forth between various options.
Usage: set the type and number of options and plug your variants in the option list. If you need more than 32 options you can also daisy chain them indefinitely.
Installation: if you save the file in your script directory it will appear in the Nodegraph editor context menu under Other > Switch. Alternatively you can add it to any scene the normal way: Nodegraph menu Other > Scripted graph, then in the Node inspector "Load script from file", and point it to where you saved the lua script.
Let us know if you have any feedback or suggestions!
Thanks
This is a script node for Octane Standalone implementing a generic "Switch" functionality.
This node lets you create a selector between multiple variants. You can have several cameras or several geometries or several materials, etc. and change the one that is actually used in the scene by setting the "Selected option" variable. This avoids constantly disconnecting and reconnecting nodes when you need to go back and forth between various options.
Usage: set the type and number of options and plug your variants in the option list. If you need more than 32 options you can also daisy chain them indefinitely.
Installation: if you save the file in your script directory it will appear in the Nodegraph editor context menu under Other > Switch. Alternatively you can add it to any scene the normal way: Nodegraph menu Other > Scripted graph, then in the Node inspector "Load script from file", and point it to where you saved the lua script.
Let us know if you have any feedback or suggestions!
Thanks