Alex Lombardi Posted December 2, 2016 Share Posted December 2, 2016 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 Quote Link to comment Share on other sites More sharing options...
Alex Lombardi Posted December 4, 2016 Author Share Posted December 4, 2016 (edited) 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 December 4, 2016 by Alex Lombardi Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.