gemini Posted October 8, 2018 Share Posted October 8, 2018 (edited) Hi, In a Filecache node I would like to add an other Rendering button after the factory default button. Can it be somehow ? G Edited October 8, 2018 by gemini Quote Link to comment Share on other sites More sharing options...
animknight Posted October 8, 2018 Share Posted October 8, 2018 Hi there! You can add spare parameters using the Edit Parameter Interface option in the FileCache node settings (the little gear icon). Please note that it will only be available in your current scene file. If you want it available across all scenes, then you need to save it as a permanent default. Hope it helps Cheers -J Quote Link to comment Share on other sites More sharing options...
gemini Posted October 8, 2018 Author Share Posted October 8, 2018 Hi, Thanks, but you see we are in the scripting section. I meant in Python. Sz Quote Link to comment Share on other sites More sharing options...
vtrvtr Posted October 8, 2018 Share Posted October 8, 2018 It can be done but you're probably better making an HDA The code it something like node = hou.node('/obj/geo1/FILE') new_button = hou.ButtonParmTemplate("new_button", "New Button") node.addSpareParmTuple(new_button) You need to set the proper scripts in the button for it to replicate the actual button logic Quote Link to comment Share on other sites More sharing options...
animknight Posted October 8, 2018 Share Posted October 8, 2018 Ofcourse you meant Python. How did I miss that ? Here you go # Get the file cache node cacheNode = hou.node("/obj/geo1/filecache1") # Get the param template group for the file cache node parmTempGrp = cacheNode.parmTemplateGroup() # create a button param template myButton = hou.ButtonParmTemplate('myrender', 'Render') # Insert my button param template after the Save to Disk -(execute) parameter parmTempGrp.insertAfter('execute', myButton) # Set the updated param template group to the cache node cacheNode.setParmTemplateGroup(parmTempGrp) Cheers -J Quote Link to comment Share on other sites More sharing options...
gemini Posted October 9, 2018 Author Share Posted October 9, 2018 Thank u for all ! 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.