Show/hide handles for custom HDA by a parameter's value

   402   2   1
User Avatar
Member
444 posts
Joined: Aug. 2019
Offline
I'd like to show/hide some handles for my custom HDA according to a parameter's value. For example, show one handle when parameter a = 0 and show another when a = 1, etc.



There is no "Hide when" or something similar. I suppose the "onoff" option is it? But it doesn't seem to support syntax like "a == 1".

Attachments:
Screenshot 2024-04-11 094622.png (63.9 KB)

User Avatar
Member
143 posts
Joined: May 2017
Offline
raincole
I suppose the "onoff" option is it? But it doesn't seem to support syntax like "a == 1".

The onoff parm. is only there to disable the handle, so it will appear grayed out if the value is not 1.

You can bind handles through viewer states, then define any logic there (Type Properties / Interactive / State Script).

Image Not Found
Edited by viklc - April 12, 2024 06:05:10

Attachments:
handle_visibility.gif (444.7 KB)
handle_visibility_01.hiplc (100.6 KB)

User Avatar
Member
311 posts
Joined: Oct. 2016
Offline
If nothing else works for you the kinefx handles support show/hide and can be scripted.
Interested in character concepts, modeling, rigging, and animation. Related tool dev with Py and VEX.
  • Quick Links