philpappas Posted August 9, 2019 Share Posted August 9, 2019 Inside my hda parameters when a toggle is set to 0 i want another toggle to do the same. where can i write something like an if statement if(toggleA=0) then toggleB=0 else toggleB=chi("../..blah") i cant do it from the disable when or hide when because that is just for the ui. how can i change the value? Quote Link to comment Share on other sites More sharing options...
ikoon Posted August 9, 2019 Share Posted August 9, 2019 Hi philpappas, is this what you need? Two ways: Quote Link to comment Share on other sites More sharing options...
philpappas Posted August 9, 2019 Author Share Posted August 9, 2019 thanks! in the second method, can you also use conditionals or if statement in the default field? like if (ch("visualise_arrays")=0,0,1) Quote Link to comment Share on other sites More sharing options...
ikoon Posted August 12, 2019 Share Posted August 12, 2019 Yes, in the Type Properties (and also in the Edit Parameter Interface), you can write expressions (both Python or Hscript). You can also put your cursor in the input (edit the expression) and hit Alt+E or Crtl+E to open External Editor ... and you can comfortably edit multiline expressions there. 1 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.