Creating a node to switch between inputs

   3031   3   1
User Avatar
Member
71 posts
Joined: Oct. 2007
Offline
Hello,

I would like to create a new node which would have multiple inputs and that would output only one of them according to the value of its parameter (a slider or a combo box).

This is to easily switch between a primitove object and its proxy or between several primitive objects (sphere, cube…) in a geometry network.


Should I use a Vex node?

It there an other way to do so than creating a new node?

Thank you very much,


Werwack
Video Game Graphics TD
User Avatar
Member
1908 posts
Joined: Nov. 2006
Offline
Is there a reason you can't use the Switch SOP?
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
201 posts
Joined: July 2005
Offline
werwack
Hello,

I would like to create a new node which would have multiple inputs and that would output only one of them according to the value of its parameter (a slider or a combo box).

This is to easily switch between a primitove object and its proxy or between several primitive objects (sphere, cube…) in a geometry network.


Should I use a Vex node?

It there an other way to do so than creating a new node?

Thank you very much,


Werwack


Umm … switch SOP?
Cheers,
Rob
Digital Supervisor | Stargate Studios Toronto
User Avatar
Member
71 posts
Joined: Oct. 2007
Offline
Thanks to both of you.

Indeed Switch does exactly what I was looking for.
I used wrong keywords when I looked into the doc, apparently, because this this one sounds obvious.

I'll try to dig a bit more, next time.

Best,

werwack
Video Game Graphics TD
  • Quick Links