Jump to content

Disable when VOPS


Mcronin

Recommended Posts

{parametername value}

eg: {MyToggle 0}

You can have several of these pairs.

Just to add what Dries said:

Pairs inside a single {} block are ANDed, and different blocks are ORed. So:

{ a 1 } { b 2 } { str "hello" }

will disable if: a==1 OR b==2 OR str=="hello"

and

{ a 1 str "hello" } { b 2 }

will disable if: (a==1 AND str=="hello") OR b==1

Make sense?

Link to comment
Share on other sites

Is it possible to disable interface element when nothing connected to second input of custom op?

I have an idea. We can connect Point SOP to second input and use something like

if(!$PTNUM) {
  // nothing connected
  ...
}
else {
  // something connected
  ...
}

But this method looks not clear :)

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