Sop solver in For each loop

   2649   2   1
User Avatar
Member
9 posts
Joined: Feb. 2016
Offline
Hi everyone, I'm trying to make each connected points(@class) being deleted overtime when they above XZ plan.

I made a bounding sphere for each @class and copy to itself with decreasing @pscale when it's above the plan.

And delete the points outside the sphere.

It works well when I set it to “single pass”

but it works totally wrong when merges all iterations together…

I have attached an example file below, it'll be fantastic if someone can help me out with this.
Edited by rush2112 - Dec. 14, 2018 15:14:22

Attachments:
sopsolver_in_loop.hip (143.4 KB)

www.haowang47.com
User Avatar
Member
8539 posts
Joined: July 2007
Offline
you can't use Solver SOP or anything else that uses DOPs inside of the For Each
It's be difficult to keep track of the individual simulations in for each especially sine you can have different number of pieces each frame, etc

what about doing it without for each?
here is an example using your technique with bounding sphere, but is easily extendable to other ways like eroding edge particles etc…

Attachments:
sopsolver_in_loop_fix.hip (230.8 KB)

Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
9 posts
Joined: Feb. 2016
Offline
Thank you so much Tomas! It works really well just as what I need it to be
www.haowang47.com
  • Quick Links