Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

Sign in to follow this  
Followers 0
Alex Lombardi

PRM_Template set default visability to hidden

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  
Followers 0