Switch node?

Started by cyphyr, August 10, 2009, 08:27:29 PM

Previous topic - Next topic

cyphyr

Any idea how to build a switch node?
What I'd like to be able to do is have a node I could switch on or off (highlight and press "d") that when in one state would channel all the preceding nodes one way and not the other and when its in the other state it would do the reverse. It would be useful for switching between simplified preview shader stares and much more complex embedded child chains  and sets of shaders.
Just an idea and I'm wondering if it could be simply constructed with some functions and hidden in an internal network...
:)
Richard

Ooh and can I have a "pass through" node? please ... :)
www.richardfraservfx.com
https://www.facebook.com/RichardFraserVFX/
/|\

Ryzen 9 5950X OC@4Ghz, 64Gb (TG4 benchmark 4:13)

Hetzen

Use a "conditional scaler" with your if/else results as your child chains, and the input is a "constant" with a value of one that you can unplug to give zero....

cyphyr

Rendering now but that just might fit my needs nicely ;) Thankyou
Richard
www.richardfraservfx.com
https://www.facebook.com/RichardFraserVFX/
/|\

Ryzen 9 5950X OC@4Ghz, 64Gb (TG4 benchmark 4:13)

Hetzen

No problem. Not tried it myself in this context before, but should work.

I too would like some sort of solo,on/off node as well though. The solo being that anything plugged into any number of these seperate nodes, when one is switched to 'solo', the others switch off. Then switch back on, when all the 'solo' buttons are un checked.

Matt

#4
A Merge Shader, if you set "Mix to A" = 1, will allow you to switch between shader trees. Because it's a surface shader, not just a function, it will work with all shader effects including displacement. A function node won't allow you to do that.

Matt
Just because milk is white doesn't mean that clouds are made of milk.