Jump to content

Disable When / Hide When parameter equal to parameter


probiner

Recommended Posts

Given two string parameters I tried to check if they are equal to disable another parameter, but doesn't work atm.

{ parma == "" } works
{ parmb == "" } works
{ parma == parmb } doesn't work

Any idea why?
Thanks

Edited by probiner
Link to comment
Share on other sites

Here is the documents on this. In short, they can an only look at the resolved values, i.e. a local referenced parameter on the left, and a static value on the right.

http://www.sidefx.com/docs/houdini/ref/windows/optype.html#conditions

So you could do { parma == "" parmb == "" } this would mean they both need to be true in order to work an (and) operation. Or if { parma == "" } { parmb == "" } would be an (or) operation. You can also do ==, !=, <, >, >=, <=, =~ (matches pattern), !~ (doesn’t match pattern) as additional operations. What is a actually quite common is to make a parameter that is invisible (or under a hidewhen under an advanced set of options) that you can use to hide and disable parameter and folder menus.

 

Link to comment
Share on other sites

  • 3 years later...

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...