defenderblender writes:
This is a simple OSL-script that can be used in the script node (Works only in Cycles with Open Shading language enabled), that creates a switch node (similar to the switch node in the compositor). To toggle the On-Value, type in ON, to toggle the Off-Value, type in OFF.
2 Comments
Um... what's wrong with using math and mix nodes with factor acting like "on/off" value??
Nothing, but I needed this script for some tasks, now I made it available, but I can't make everything free (I have so many free addons) ¯\_(ツ)_/¯
Also, this can be easily modified to have more than two inputs ... For example, if I edit this to have 4 inputs, I have a way cleaner Node tree than using Mix Nodes.