Running a Vellum Cloth Simulation in a For Each Loop?

   3113   3   1
User Avatar
Member
4 posts
Joined: Jan. 2020
Offline
Hi there!
I am working on a procedural system for creating a stylized type of trees, where I use the Vellum solver to shape the Leaves.
The base of the tree top is made from a bunch of larger overlapping shapes, all of which individually serve as collision geometry for the Vellum simulations. I need to be able to run the vellum solver on each of these larger shapes separately, with no interaction between the simulations. I tried to simply run the Vellum solver over each of the shapes using a for each connected piece loop, however it seems like only the first pass works correctly, as all subsequent passes just mess up the first one, instead of running new simulations.

Does anyone know of a way to solve this, or perhaps a better way to go about it all?

Thank you in advance
User Avatar
Member
405 posts
Joined: April 2017
Offline
This seems like a good candidate for a TOP network. You could use the Wedge TOP to switch the input to the Vellum simulation in your SOP network and the resulting cache on disk.
Edited by toadstorm - Sept. 22, 2020 13:15:19
MOPs (Motion Operators for Houdini): http://www.motionoperators.com [www.motionoperators.com]
User Avatar
Member
4 posts
Joined: Jan. 2020
Offline
Interesting! I'll look into that - thank you for your advice
User Avatar
Member
45 posts
Joined: April 2016
Offline
Here is a great video that just came out.

https://www.sidefx.com/tutorials/pdg-wedging-a-compile-sop-network/ [www.sidefx.com]
  • Quick Links