Age attribute from RBD sim

   1904   3   1
User Avatar
Member
52 posts
Joined: May 2018
Offline
Maybe this is a dumb question, but I haven't been able to solve it.

Is it possible to get an age attribute from an RBD sim like a POP sim would have? I've tried different wrangle code in the sim and post sim, but nothing is working right.

Thanks
User Avatar
Member
9380 posts
Joined: July 2007
Offline
Bullet Solver SOP has Output/Age Attribute checkbox

or

Bullet Solver DOP or Rigid Body Solver DOP have Enable Aging checkbox, for this one you need to make sure you initialize f@age attribute before the sim
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
52 posts
Joined: May 2018
Offline
For some reason the attribute doesn’t come through. Maybe it’s something with initialization pre sim or something.

Ended up using a wrangle in the sim based on active and current frame and it worked really well.
User Avatar
Member
100 posts
Joined: Oct. 2021
Offline
If you have inactive pieces and you want @age to start when they get active you can use a popwrangle:

if(i@active==0){
    f@age=0;
}

Like tamte said... you have to initialize @age outside of the dopnet and check "Enabling Aging" in the rigidbodysolver.
www.rehimi.de
  • Quick Links