Hello,
As the title says as I am developing a model in matlab I was wondering if there was a way to update the same visualiser window rather than opening a new one each time I run the code.
Best wishes,
Rory
Matlab - Update same visualiser rather than start a new one
- Rory Turnbull
- Posts: 28
- Joined: Mon Dec 16, 2019 1:57 am
- Ayman Habib
- Posts: 2248
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Matlab - Update same visualiser rather than start a new one
Hi Rory,
The visualizer spawning occurs during initSystem call as such it's not intended to be reused. In general model builders typically use the OpenSim application/GUI where editing and visual feedback is immediately available rather than use the visualizer but I understand your context could be different (e.g. if you're adding/removing components of the model). The recommended workflow for creating a new model is to create some initial version using code, save to osim file then use the application to refine/inspect/query the model.
Hope this helps,
-Ayman
The visualizer spawning occurs during initSystem call as such it's not intended to be reused. In general model builders typically use the OpenSim application/GUI where editing and visual feedback is immediately available rather than use the visualizer but I understand your context could be different (e.g. if you're adding/removing components of the model). The recommended workflow for creating a new model is to create some initial version using code, save to osim file then use the application to refine/inspect/query the model.
Hope this helps,
-Ayman