Jump to content
philpappas

Link toggle values inside asset type properties

Recommended Posts

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?

 

Share this post


Link to post
Share on other sites

Hi philpappas, is this what you need? Two ways:

parm_first.gif.684e1685a5d685858122b9a048134063.gif

 

parm_second.thumb.gif.a5a2f5ee3c1eed30245ba2e21b96f475.gif

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×