Jump to content

add and delete objects in DOP


elecstorm

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
Link to comment
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?

Link to comment
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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...