Christian S Posted June 18, 2014 Share Posted June 18, 2014 Hi, Maybe it's in my face and I can't see it but... I'd like to know how to recook the whole tree. You know, just like when you load a scene. The goal is to profile the graph using Houdini's Performance Monitor but there is always part of the graph no getting modified so I can't calculate the cost of everything... Thx! Christian Quote Link to comment Share on other sites More sharing options...
old school Posted June 18, 2014 Share Posted June 18, 2014 help opcook: opcook [-F] [-f <frame_start> <frame_end>] [-i <frame_inc>] [-v] <object> like opcook -F /obj/geo1/* will force cook all SOPs inside geo1 or for Python: hou.Node.cook() like hou.node("/obj/geo1/grid1").cook(force=True) and to force update all nodes in an object, loop through them all forcing cooks. nodes = (hou.node('/obj/geo1/grid1'), hou.node('/obj/geo1/point1')) for node in nodes: node.cook(force=True) 1 Quote Link to comment Share on other sites More sharing options...
old school Posted June 18, 2014 Share Posted June 18, 2014 Or you can always delete and undelete the object. 1 Quote Link to comment Share on other sites More sharing options...
MENOZ Posted June 18, 2014 Share Posted June 18, 2014 what if you seto all the nodes to unload? would that work as well? Quote Link to comment Share on other sites More sharing options...
edward Posted June 19, 2014 Share Posted June 19, 2014 A minor improvement on old school's post: (untested) for node in hou.node("/").allSubChildren(): node.cook(force=True) Quote Link to comment Share on other sites More sharing options...
Christian S Posted June 19, 2014 Author Share Posted June 19, 2014 Thanks to all. All great tricks that work 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.