Jump to content

PRM_Template set default visability to hidden


Recommended Posts

I have a few PRM_Templates I need to hide and unhide based on the tools ui. 

I can get the functionality I want using enableParm() and setVisibleState() with evalInt() in cookMySop. BUT that only works once the sop node has been cooked/connected. so if i drop down a newly created node all the PRM_Templates are showing, how do i set them to hidden initially?

 

Also would I need to use updateParmsAndSpareParmsFlags()? Not sure when I would need to call that function

Cheers

 

Link to comment
Share on other sites

bool SOP_YourWhosInTheFloosNode::updateParmsFlags() {
    enableParm("pramName", false, -1);
    setVisibleState("pramName", false, -1);
    return true;

}

ok looks like you have to override the updateParmsFlags()

http://www.sidefx.com/docs/hdk15.5/_h_d_k__op_basics__overview__parameters.html#HDK_OpBasics_Overview_Parameters_Disabling_Hiding

didn't see that page

Edited by Alex Lombardi
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...