Change muscle attachment locations

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Dan Mulla
Posts: 15
Joined: Tue Nov 04, 2014 11:16 am

Change muscle attachment locations

Post by Dan Mulla » Wed Jun 13, 2018 10:14 am

Hi everyone,

Is there a quick way to change the origin and insertion attachments of a muscle in Matlab and have OpenSim re-calculate/update its Path around a wrapping object? I tried using the "replacePathPoint" function but it doesn't have an input for specifying the new position.

Thank you!

Dan

Tags:

User avatar
Dan Mulla
Posts: 15
Joined: Tue Nov 04, 2014 11:16 am

Re: Change muscle attachment locations

Post by Dan Mulla » Thu Jun 14, 2018 1:40 pm

Figured out a workaround from using the API functions for those who might encounter a similar issue -- can edit the .osim file before importing the model by using the "fopen" function in Matlab and changing the exact line that's needed and saving that to file.

Dan

POST REPLY