Page 1 of 1

Python sample code to follow

Posted: Tue Apr 16, 2024 2:18 am
by hmejbri
Hi, I'm new to opensim and the python API and I'm trying to follow the documentation but I found it a little complicated. If anyone can provide a sample code on github that I can follow it will be much appreciated. What I'm trying to do is load a .osim model then apply scaling and IK.

Re: Python sample code to follow

Posted: Thu Apr 25, 2024 5:06 pm
by ongcf
The OpenSim github repository has example Python code located here: https://github.com/opensim-org/opensim- ... n/examples

These examples are also provided in the resources folder that is created when you first open OpenSim. By default, this is installed in Documents/OpenSim/<version>/Code/Python.