papicrunch Posted November 20, 2010 Share Posted November 20, 2010 hi, I'm doing an otl's digital asset and I created all the settings using "edit paramater interface". Now I try to make a handle for this asset, but it 's created the handle into the type properties. My question is, how to move all created spares parameters to standard parameters automatically (there are about 50 ) ? thank you, Papi (I hope you understand my english ) Quote Link to comment Share on other sites More sharing options...
LaidlawFX Posted November 21, 2010 Share Posted November 21, 2010 hi, I'm doing an otl's digital asset and I created all the settings using "edit paramater interface". Now I try to make a handle for this asset, but it 's created the handle into the type properties. My question is, how to move all created spares parameters to standard parameters automatically (there are about 50 ) ? thank you, Papi (I hope you understand my english ) You should be able to copy the parameters and paste them form the edit parameter interface to the type parameters no guarantee it will work(it used to work...). For future reference, if you already created the properties for the digital asset you should only use type properties to create your parameter. Next time before you create your digital asset set everything up with parameter interface. I would hate to say, but you should just copy the heart of the node into a new material shader builder and start from scratch. It stinks to redo the work but you'll do it faster the next time. It you give your parameter names a header like dif_color, or refl_color it will help you organize the interface quicker. Quote Link to comment Share on other sites More sharing options...
graham Posted November 21, 2010 Share Posted November 21, 2010 (edited) You can manually copy parameters but you should be able to do with with a simple Python script. node = hou.node("pathtonode") template_group = node.parmTemplateGroup() node.type().definition().setParmTemplateGroup(template_group) This extracts the parameter layout, spare parms and all, from the node and then applies that layout to the asset definition, thereby saving all the parameters as actual asset parameters. Edited November 21, 2010 by graham Quote Link to comment Share on other sites More sharing options...
LaidlawFX Posted November 21, 2010 Share Posted November 21, 2010 You can manually copy parameters but you should be able to do with with a simple Python script. node = hou.node("pathtonode") template_group = node.parmTemplateGroup() node.type().definition().setParmTemplateGroup(template_group) This extracts the parameter layout, spare parms and all, from the node and then applies that layout to the asset definition, thereby saving all the parameters as actual asset parameters. Cool Quote Link to comment Share on other sites More sharing options...
graham Posted November 22, 2010 Share Posted November 22, 2010 Here's a shelf tool you can install for a 1-click type solution. Just shove it in $HOME/houdini11.0/toolbar/ and throw it on the shelf. It brings up a node chooser to make it super easy. Also includes a help card. ui_harden_spare_parms.shelf 1 Quote Link to comment Share on other sites More sharing options...
papicrunch Posted November 22, 2010 Author Share Posted November 22, 2010 (edited) thank you, it's work, now i just need to relink all this paramaters. thank again, papi edit : Yeah no need to relink ... ! you save my time Graham ! so my girlfriend thank you too Edited November 22, 2010 by papicrunch Quote Link to comment Share on other sites More sharing options...
pelos Posted December 24, 2017 Share Posted December 24, 2017 very handy trick =) 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.