Page 1 of 1

Displaying bone geometries with Python

Posted: Mon Dec 03, 2018 8:59 am
by 00ocai
I've just started using Python with Opensim and have imported and visualized the Hamner2010 (Full body) model using Spyder(Python 2.7). However, the model appears without bones. I assume that the bone geometry libraries haven't been imported? How would I go about including bone geometries e.g. so the model appears the same as displayed as using the OpenSim GUI?

Re: Displaying bone geometries with Python

Posted: Mon Dec 03, 2018 10:46 am
by jimmy
You can add the Geometry Path to the Visualizer via;

Code: Select all

ModelVisualizer.addDirToGeometrySearchPaths(Path2GeometryDir)
let us know if that works?

Re: Displaying bone geometries with Python

Posted: Mon Dec 10, 2018 8:17 am
by 00ocai
That worked great. Thanks James!