Jump to content

switch in vex?


Recommended Posts

Hi, 

I need to switch between multiple inputs in SOP, I can use switch SOP node, but since I have many switch condition, I think it would way easier in vex (as opposed to having multiple switch nodes connected together). I could not find a vex function that switches between input, or am I missing something? 

Link to comment
Share on other sites

  • 1 year later...

My very first post on ODForce.   :)
Thanks Polvy ...
I extended your selector for string based selection  (using multiple concatenated string menus) .   (note wont work with normal ordered menu as it seems the token evaluates to a number regardless). 

A nice aspect is it keeps my flow in readable form .. ( nb.  case and typo sensitive)
Could easily do this with some VEX in a wrangle but for some this might be helpful.  

 

 

selector_StringTypes_02.hiplc

  • Like 2
Link to comment
Share on other sites

  • 11 months later...
 
 
 
 
 
 
 
 
 
7
On 2/13/2019 at 7:28 PM, Benra said:

My very first post on ODForce.   :)
Thanks Polvy ...
I extended your selector for string based selection  (using multiple concatenated string menus) .   (note wont work with normal ordered menu as it seems the token evaluates to a number regardless). 

A nice aspect is it keeps my flow in readable form .. ( nb.  case and typo sensitive)
Could easily do this with some VEX in a wrangle but for some this might be helpful.  

 

 

selector_StringTypes_02.hiplc

I am actually interested in how you went about creating that selector node. Do/can you somehow attach a script to it, or how do you go about changing/adding on to what the default null node does? I am not quite sure if there is a term for what you did, so I am not sure exactly what to try and research, lol.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...