Swap rbd during simulation

   867   2   2
User Avatar
Member
17 posts
Joined: April 2015
Offline
Hi,
Is it possible to swap rbd simulated object to different one while simulating? For example bunch of simulated boxes changes at random to spheres which inherit position, rotation and continue to simulate.
---------------------------------------
https://vimeo.com/orsonorix [vimeo.com]
https://vimeo.com/studioxantus [vimeo.com]
User Avatar
Staff
645 posts
Joined: Oct. 2012
Offline
I think you can do this by first replacing the packed prims' contents with the new shape(e.g. with the Pack Inject SOP, or by copying the point attribs over to new packed prims) and then resetting the 'id' point attrib to -1 which will cause the solver to re-import the shape. You might also set 'computecom' and/or 'computemass' to 1 if you want those properties to be recomputed for the new geometry.
User Avatar
Member
17 posts
Joined: April 2015
Offline
Hi,
thanks, it worked! I'm attaching hip if anyone interested.
Cheers

Attachments:
rbd_swap_Test_01.hiplc (579.5 KB)

---------------------------------------
https://vimeo.com/orsonorix [vimeo.com]
https://vimeo.com/studioxantus [vimeo.com]
  • Quick Links