Reset scene to middle state rather than initial state

Typically: "How do I... ", "How can I... " questions
Post Reply
MaJiamu
Posts: 32
Joined: 19 Jan 2021, 03:52

Reset scene to middle state rather than initial state

Post by MaJiamu »

Hello, how can I reset scene to middle state (for example what the scene looks like at 10th second ) rather than initial state at simulation end by script?
coppelia
Site Admin
Posts: 10747
Joined: 14 Dec 2012, 00:25

Re: Reset scene to middle state rather than initial state

Post by coppelia »

Hello,

the easiest would be to drop the model Models/tools/playback tool.ttm into the scene: then you can play-back the whole simulation by moving a slider.

Something similar can be achieves by writing a customization script (or an add-on) that memorizes the poses of all objects at a specific simulation time, then restores that state once simulation ended.

Cheers
Post Reply