Jump to content

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?

 

Link to comment
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
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...