Jump to content
Sign in to follow this  
Alex Lombardi

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



Share this post

Link to post
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()


didn't see that page

Edited by Alex Lombardi

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this