Obi Official Forum
Help Save and restore the state of the rops in the scene. - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Help Save and restore the state of the rops in the scene. (/thread-3972.html)



Save and restore the state of the rops in the scene. - murathan - 15-08-2023

In the same scene, there are multiple Obi Ropes. After moving them differently within the game, is it possible to save their current positions to a text file or something similar, and then, at a different time, load them back to the same positions and shapes?


RE: Save and restore the state of the rops in the scene. - josemendez - 16-08-2023

(15-08-2023, 05:56 PM)murathan Wrote: In the same scene, there are multiple Obi Ropes. After moving them differently within the game, is it possible to save their current positions to a text file or something similar, and then, at a different time, load them back to the same positions and shapes?

Hi,

Yes, you can both get and set all per-particle properties (position, velocity, orientation, and so on). See:
http://obi.virtualmethodstudio.com/manual/6.3/scriptingparticles.html

Writing/reading these to/from an external file is up to you.

kind regards,