Run SOFA with GUI animated step by step from python script #5396
-
|
Hello, But instead of the MainLoop I would like to be able to call the Sofa.Simulation.animate(self.root, self.root.dt.value) function whenever I want to. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @japhten You have an example of this in the basic.py example. But having both the runSofa GUI and managing the steps in python is not possible. What you can do is to run your time step as in the basic.py example and use another solution for rendering like SimRender or other python based rendering tool. Hope this helps |
Beta Was this translation helpful? Give feedback.
Hi @japhten
You have an example of this in the basic.py example. But having both the runSofa GUI and managing the steps in python is not possible. What you can do is to run your time step as in the basic.py example and use another solution for rendering like SimRender or other python based rendering tool.
Hope this helps