Jump to content

DOP modify data before/after solver


rayman

Recommended Posts

I`m trying to store some sim data inside dops after solver and read it before sim in next sim step.

For example I want to create simple tool that changes Active Value based on average velocity.

I tried to create empty data and store the object position there, then apply sover data, then another empty data. The problem is that both of my custom data values are always the same. I tried using merge, apply data and multi solver (with sops solvers) in different configurations without success. Can someone give me some hints.

Thanks.

Link to comment
Share on other sites

Houdini parses node graph two times - first looking for data and then solving it. So all your applyData DOPs will be before solve phase - and you'll get the same data.

Possible solution is to modify all data with solvers - multiple solver DOP with copy data solver dop which copies pos. info to some empty pos data chunk, then your rbd solver and then second copy data solver dop which again copies new pos data to another pos. data.

m_20120709-amgk-16kb.jpg

Another way is to copy Position data without solvers (using expressions and emptydata DOP, Modifydata DOP for example) and then rbd solver will change original Position data and you can compare it to your copied one BUT only in the next timestep (or using some kind of solver to compare you can do it in current timestep right after rbd solver).

Example image is only to demonstrate principles, cause you can access velocity right in Position data.

p.s. I'm new to Houdini so there are might be better ways)

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