catchyid Posted October 31, 2017 Share Posted October 31, 2017 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? Quote Link to comment Share on other sites More sharing options...
ikoon Posted October 31, 2017 Share Posted October 31, 2017 (edited) You could evaluate those conditions in a detail wrangle and then write an expression in the switch "Select input": detail("../attribwrangle1/","result",0) It references the result of the wrangle. Compilable solution, using spare input: switch-compilable.hiplc Edited October 31, 2017 by ikoon 1 Quote Link to comment Share on other sites More sharing options...
polvy Posted October 31, 2017 Share Posted October 31, 2017 (edited) Another option, maybe don't fit to your case but can be usefull. selector.hiplc Edited October 31, 2017 by polvy 2 Quote Link to comment Share on other sites More sharing options...
catchyid Posted October 31, 2017 Author Share Posted October 31, 2017 Brilliant! Thanks for your answer, very clean and obvious Quote Link to comment Share on other sites More sharing options...
Benra Posted February 14, 2019 Share Posted February 14, 2019 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 2 Quote Link to comment Share on other sites More sharing options...
MostHated Posted January 17, 2020 Share Posted January 17, 2020 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. Quote Link to comment Share on other sites More sharing options...
MostHated Posted January 20, 2020 Share Posted January 20, 2020 I got it figured out over the weekend. Pretty nice how many different ways there are to go about making things do neat things, lol. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.