Jump to content

node evaluation


Recommended Posts

Hello,  What are the conditions in which Houdini nodes evaluate ?  I recently used a point wrangle node which I used to create

geometry on the fly using VEX functions such as addPoint(), addVertex(), addPrim()  etc. etc. Thankfully the code is evaluated once

in this node for those functions and the size of the node in number of points and primitives stays the same when I press "play".   But, if my node is doing

something dependent on time, I would expect the node to be re-evaluated if there is any upstream change to the graph (in a node "above"). How does

Houdini know the difference between these two cases ?  If the node is re-evaluated and there are any geometric creation functions in the body of the VEX

code, are they re-evaluated at every step ? 

Thanks

Link to comment
Share on other sites

SOPs are timeless by design. Your node evaluates whenever upstream geometry changes, so possibly at every frame it will repeat its work from scratch. Albeit this may seem wasteful, it's actually the reason SOPs are so flexible. Most nodes track upstream changes and evaluate only when something has changed. You can verify it by setting TimeShiftSOP (placed above your node) to a constant frame and check cook statistics for a given node. 

Link to comment
Share on other sites

Houdini is pretty smart about figuring out if a node is time dependent or not. The simplest way to check, is to middle click on a node and look at the bottom line, it will say "Time dependent cook: no" or Yes if it believes the node needs to be recooked with a time change.

 

Cheers,

koen

 

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