Parameter disabled state only correct after cook

   2428   0   0
User Avatar
Member
21 posts
Joined: Dec. 2017
Offline
I am using the disabled state of parameters to control how I display them in a UI, however it seems that the value in the `HAPI_ParmInfo.disabled` is only valid after the node has been cooked. This means that I need to cook the node before I can update my UI display as other parameters are changed. I actually want to delay (or potentially never run) the cook as it can be a costly action.

For example, the “divs” parameter on a newly created “Sop/box” node is not disabled, but once I cook the node it is. If I then set “dodivs” to true, the “divs” parameter remains disabled until I cook the node again.

Is there a way to trigger HAPI to calculate the disabled state without cooking the node?

Cheers,
Tim
Edited by timmurphy - March 28, 2019 18:28:37
  • Quick Links