Jump to content

Recooking the complete tree...


Recommended Posts

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

Link to comment
Share on other sites

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)
  • Thanks 1
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...