Rotate pelvis in myModel.osim in python
Posted: Tue Feb 08, 2022 7:49 am
Hello,
I want to change the pelvis_rotation (coordinates window of OpenSim) of my model with my python script. Unfortunately I have no idea how to access the coordinate. The model should then be saved again with the new rotation. The documentation is very complex and unfortunately difficult to understand for me as a beginner.
I tried somethink like this...
myModel = osim.Model("MyModel.osim")
coordinates= myModel.getCoordinateSet()
Does not work for me. Can anybody help me out?
Best regards,
Markus
Edit:
I found a workaround. Just modify the .osim file in python and safe the new model!
I want to change the pelvis_rotation (coordinates window of OpenSim) of my model with my python script. Unfortunately I have no idea how to access the coordinate. The model should then be saved again with the new rotation. The documentation is very complex and unfortunately difficult to understand for me as a beginner.
I tried somethink like this...
myModel = osim.Model("MyModel.osim")
coordinates= myModel.getCoordinateSet()
Does not work for me. Can anybody help me out?
Best regards,
Markus
Edit:
I found a workaround. Just modify the .osim file in python and safe the new model!