Page 1 of 1

obtain the information of models

Posted: Wed Feb 22, 2023 8:54 am
by sweet
Hi guys,

I want to get all the information of one model, such as mass of each segment. Can I use the python code to gain this data quickly and how I acheive it. Hoping anyone can give me some advice or examples because I am not very fimilar about using python to solve problems in OpenSim.

Best wishes,
Wang

Re: obtain the information of models

Posted: Thu Feb 23, 2023 12:21 pm
by aymanh
Hello,

There're example snippets of iterating through a model to find details about its components, these are described here
https://simtk-confluence.stanford.edu/d ... tsofanySet
The methods you can invoke are available through the API documentation here
https://simtk.org/api_docs/opensim/api_docs/index.html
If you need more help please let us know.

Hope this helps, and if you end-up with a script that you think is useful to the community, please post here or let us know so you can help other members as well.

Best regards,
-Ayman