Displaying bone geometries with Python

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Cai Birch
Posts: 31
Joined: Tue Jan 02, 2018 7:40 am

Displaying bone geometries with Python

Post by Cai Birch » Mon Dec 03, 2018 8:59 am

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?

Tags:

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Displaying bone geometries with Python

Post by jimmy d » Mon Dec 03, 2018 10:46 am

You can add the Geometry Path to the Visualizer via;

Code: Select all

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

User avatar
Cai Birch
Posts: 31
Joined: Tue Jan 02, 2018 7:40 am

Re: Displaying bone geometries with Python

Post by Cai Birch » Mon Dec 10, 2018 8:17 am

That worked great. Thanks James!

POST REPLY