Jump to content


DOP modify data before/after solver


  • Please log in to reply
2 replies to this topic

#1 rayman

rayman

    Peon

  • Members
  • Pip
  • 17 posts
  • Joined: 09-March 12
  • Location:Sofia, Bulgaria
  • Name:Pavel Pehlivanov

Posted 09 July 2012 - 05:20 AM

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.

#2 bloomendale

bloomendale

    Initiate

  • Members
  • PipPip
  • 183 posts
  • Joined: 26-December 11
  • Name:- -

Posted 09 July 2012 - 07:53 AM

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.

Posted Image

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)

#3 rayman

rayman

    Peon

  • Members
  • Pip
  • 17 posts
  • Joined: 09-March 12
  • Location:Sofia, Bulgaria
  • Name:Pavel Pehlivanov

Posted 09 July 2012 - 11:59 PM

Thank you!
Copy Data Solver with multisolver works nice!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users