How do I open a model that contains a custom plugin-dependent component? #865
-
I want to work on this OpenSim model in OpenSim Creator: But when I want to open the .osim file, I face an error (screenshot below). What's the problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The error comes from the OpenSim API whenever it tries to load an <DynamicLigamentForce ...>
<stuff />
</DynamicLigamentForce> Where OpenSim Creator doesn't support loading custom plugins. Even if it did, that particular project would need to be recompiled against OpenSim 4.x, which may require code changes, upgrades, etc. It's usually straightforward, but really requires a developer to do it: the C++ code can sometimes be tricky to port, or require build systems, IDEs etc. to be set up correctly in order for everything to go smoothly. If you want to open this specific file then you need to:
|
Beta Was this translation helpful? Give feedback.
The error comes from the OpenSim API whenever it tries to load an
.osim
file that contains an XML element that it isn't aware of. Your.osim
file contains something like:Where
DynamicLigamentForce
is a component that was added via an OpenSim plugin. In this specific case, the model being loaded is an OpenSim3 model that depends on a "Ligament Model Source" (linked in the SimTK source) that builds a DLL plugin that adds support forDynamicLigamentForce
. The plugin dll was probably compiled against OpenSim3 when the authors originally published their work.OpenSim Creator doesn't support loading custom plugins. Even if it did…