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?
MATLAB API cannot find vtp files
- Sina Porsa
- Posts: 5
- Joined: Sun Jul 15, 2018 4:51 pm
Re: MATLAB API cannot find vtp files
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;
Let us know if the geometry shows up when including the above functions?
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);
- Sina Porsa
- Posts: 5
- Joined: Sun Jul 15, 2018 4:51 pm
Re: MATLAB API cannot find vtp files
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\
For anyone else who may have the same issue: this is the default path for windows users: c:\OpenSim4.0\Geometry\