prashantcgi Posted November 14, 2013 Share Posted November 14, 2013 HI All! Sorry if its a repetitive Question. I have a lots geometry at Object level, and Each one of these Geometry have a cache node inside the the end of Hierarchy. For Clearing cache from all geometries, i have to go inside each geometry and click on the clear cache button. My question is I want to create a master control at the OBJ level and want to add all the button of each cache node here Is there a easy way to do thi . I tried drag and drop from cache node clear buttonto the edit parameter interface of Null at Obj level. Bu ti got this error "problem while creating some requested parameters Node is Outside the subnet /obj/geo1/cache1/clear" Please help!!!! Thanks to all odforce members!!!!!!!! Quote Link to comment Share on other sites More sharing options...
prashantcgi Posted November 14, 2013 Author Share Posted November 14, 2013 Is there a easy way to connect the buttons, Sorry I'm new to this. Quote Link to comment Share on other sites More sharing options...
woodenduck Posted November 14, 2013 Share Posted November 14, 2013 (edited) You could create a shelf button to clear any cache nodes in the currently selected geometry using Python. That way you don't have to set it up for each geometry object you want to clear. Create a new shelf tool and put the following in to the 'script' section. import hou myNode = hou.selectedNodes() for sop in myNode: for node in sop.children(): if node.type().name() == 'cache': node.parm('clear').pressButton() Edited November 14, 2013 by woodenduck Quote Link to comment Share on other sites More sharing options...
woodenduck Posted November 14, 2013 Share Posted November 14, 2013 note, each indent is a 'tab'. For some reason the formatting got a little messed up! Quote Link to comment Share on other sites More sharing options...
prashantcgi Posted November 14, 2013 Author Share Posted November 14, 2013 Thanks! 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.