Removing FEM objects in DOPs based on SOP attribute mid-sim

   507   0   1
User Avatar
Member
69 posts
Joined: Sept. 2018
Offline
Hi!

I'm trying to simulate bubbles (FEM objects) growing in size, and finally popping when they reach a certain volume.

This is my pipeline:

1. Create spheres in SOPs
2. Grow them with a translate over $F
3. Measure the volume and create an attrib from this
3. Wire the sphers into DOPs as FEMs, so that when they grow they won't intersect
4. TODO: Get the volume attrib for each "bubble," and remove this bubble in DOPs when its volume attrib reaches a certain value
5. TODO: Get the REMOVED sphere back into SOPs (and do some SOP things with it again to dissolve it)

What I need help with is number 4 and 5 on this list!


For it to work I need to delete the FEM objects in the DOP network (mid-sim), based on a attribute (the volume of the sphere).

Any ideas of how to do this?

I've attached a hip file. Only different is, in the hip the attribute is not "volume" but rather an attribute "burst" is created when the volume has reached a certain value.

THINGS I'VE TRIED:
* I've tried removing the specific (bursting) spheres in SOPs BEFORE the DOP network (with a simple blast). But that didn't seem to work.
* I've also tried using a remove DOP node, to remove the "burst" group, but it seems it needs to be a DOP group object, and not a SOP group.

Best
Edited by albinioni - May 1, 2021 17:32:18

Attachments:
Bursting FEM bubbles.hiplc (264.9 KB)

  • Quick Links