Jump to content

multiple solver node execution order


cloudamy

Recommended Posts

Hi,

So I am thinking about creating the velocity in node geo1 and move the points in node geo2. The problem is, I want to change the velocity each frame so i have a solver node in geo1. let's call it solver1. when i want to move points in geo2, i created another solver node, solver2. I am thinking about simply reading the velocity in solver1 and use it in solver2, like using  getattrib. However, I am not sure at each time frame what is the order of execution. How can I ensure that at each time frame solver1 is executed before solver2?

Thanks!

Link to comment
Share on other sites

  • 2 weeks later...

Assuming I've understood your explanation correctly, solver1 will always be computed before solver2 simply because when solver2 tries to getattrib from solver1, solver1 will be computed for the current frame.

Everything in Houdini cooks (computes) from "top" to "bottom", "left" to "right" in a node tree and when you call nodes with getattrib or through a node like "object merge" those nodes will be placed above the current node in the node tree/execution order.

Link to comment
Share on other sites

3 hours ago, underscoreus said:

Assuming I've understood your explanation correctly, solver1 will always be computed before solver2 simply because when solver2 tries to getattrib from solver1, solver1 will be computed for the current frame.

Everything in Houdini cooks (computes) from "top" to "bottom", "left" to "right" in a node tree and when you call nodes with getattrib or through a node like "object merge" those nodes will be placed above the current node in the node tree/execution order.

Yes, this is exactly what I was confused about. Thank you!

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