Hi all,
Can I change muscle insertion point of OpenSim model by Matlab scripting?
Changing muscle insertion point
- Md Sanzid Bin Hossain
- Posts: 15
- Joined: Mon Aug 26, 2019 7:58 am
Re: Changing muscle insertion point
Yes. You can get the muscles Geometry path, which holds the path points.
- Md Sanzid Bin Hossain
- Posts: 15
- Joined: Mon Aug 26, 2019 7:58 am
Re: Changing muscle insertion point
I have tried the following code. But I didn't get any matrix for path point. Can you figure out what went wrong?
Again, how can I update those pathpoint in the Matlab code?
Again, how can I update those pathpoint in the Matlab code?
Code: Select all
clc;
clear;
close all;
import org.opensim.modeling.*
model=Model('subject_walk_adjusted.osim');
references = osimList2MatlabCell(model,'Muscle');
path_points = references{16}.getGeometryPath().getPathPointSet();