samvac Posted January 23, 2022 Share Posted January 23, 2022 Hey up, Hope every one is well. Just a quick question regarding the switch if node. i want to switch based on the transform7 , ty value . is this possible ? if so any suggestions how i could script this ? Quote Link to comment Share on other sites More sharing options...
Alain2131 Posted January 23, 2022 Share Posted January 23, 2022 Hey Sam, The If syntax can be found here → https://www.sidefx.com/docs/houdini/expressions/if.html if(ch("../transform7/ty")>0.5, 1, 0) But for a simple comparison such as this, you could simply remove the if altogether. ch("../transform7/ty")>1 This will resolve to 1 if true, and 0 if false. 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.