Page 1 of 1

MATLAB API cannot find vtp files

Posted: Mon Nov 19, 2018 2:54 pm
by dorsavi
I have recently installed OpenSim4.0 andconverted my osim files and I can open them in GUi, but whenever I run my matlab api scripts it says it cannot find any of my vtp files. I know it will not effect my calculations but it's annoying as it keeps printing on command window whenever I load a model or use InitSystem()
any ideas?

Re: MATLAB API cannot find vtp files

Posted: Tue Nov 20, 2018 10:31 am
by jimmy
Yes, it is annoying. We have it on our boards to do something about ([urlhttps://github.com/opensim-org/opensim-core/issues/2375]#2375[/url]). In the meantime you could try adding the below code in Matlab;

Code: Select all

% Path to the OpenSim Geometry folder (below is a Mac Path)
path='/Users/username/Applications/OpenSim 4.0/OpenSim 4.0.app/Contents/Resources/OpenSim/Geometry';
ModelVisualizer.addDirToGeometrySearchPaths(path);
Let us know if the geometry shows up when including the above functions?

Re: MATLAB API cannot find vtp files

Posted: Tue Nov 20, 2018 2:49 pm
by dorsavi
Thanks James, yes it solved the problem.
For anyone else who may have the same issue: this is the default path for windows users: c:\OpenSim4.0\Geometry\