Jump to content
nicoladanese

cache out RBDs as separate sims

Recommended Posts

hey all!

I have a rbd sim made of several rbd packed objects, and now I'd like to cache it out but export each rbd packed object as a single alembic file, ideally I'd like to cache the entire sim for review and secondary simulations (smoke and debris) and then separate the cached version by those packed objects and create different alembics...any idea on how to do that? I'm looking into dop import to mask the packed object I want, but I'm missing the step of caching the entire sim first...

cheers!

Share this post


Link to post
Share on other sites

Hey Nicola.

You can use the Wedge for do it.

Basically you cache your simulation as you usually do, everything together. After you load back the geometry of the simulation you can put down a blast/delete. In the blast you can use the wedge parameter to isolate every piece of geometry and cache it out.

For example: in case you are using packed geometry you can test if the point number is equal to the wedge number. Everything else will be deleted. Remember to set the maximum range to be equal to the number of your pieces minus one since it starts from zero

Edited by Andrea

Share this post


Link to post
Share on other sites

Hey Andrea!

what I meant was something more generic, say you have a building collapsing, and is made of several packed object (glass, floors, ceilings...) and I wanted them to be separated at the end of the process.

I found out that I can name them differently in the assemble sop when I pack them, so after the cache I still have the name in the primitive, so problem solved!

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×