Jump to content
elecstorm

add and delete objects in DOP

Recommended Posts

Hi All!

I have a question. There are many objects in scene. I need to simulate some groups of them in few frames (about 1-2 seconds) - using DOP like a conveyor of sumulation.

I need to add objects to DOP and delete them during the simulation. Node "active value" works fine, but incative objects anyway slow down simulation's speed.

Is there any solution to remove objects from DOP during simulation? And freeze object's last state in scene.

Edited by elecstorm

Share this post


Link to post
Share on other sites

How about using a switch DOP with a null in the second input. Then just freeze the last simulated frame back in sops with a Timeshift sop?

I attached a simple example.

dopFreeze.hip

Share this post


Link to post
Share on other sites

How about using a switch DOP with a null in the second input. Then just freeze the last simulated frame back in sops with a Timeshift sop?

I attached a simple example.

It's fine solution, thank you. I can use delete-node instead of swtich. But freezing object by timeshift works with individual objects only. What about fractured object with hundreds of pieces?

Share this post


Link to post
Share on other sites

Group the pieces with connectivity/partition, then delete based on group. Or they should have a piece primitve attribute you can use.

Share this post


Link to post
Share on other sites

Group the pieces with connectivity/partition, then delete based on group. Or they should have a piece primitve attribute you can use.

Ok, deleting pieces is not problem, but time offset will not work, because each piece will have to be frozen separately.

Here is an example. Fracture object's peaces are deleted during the simulation, but they are deleted from the scene also...

delete_example.hipnc

Edited by elecstorm

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

×