Jump to content

Cache Surface Node


Recommended Posts

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!!!!!!!!

Link to comment
Share on other sites

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 by woodenduck
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...