get location for muscle does not work in python
Posted: Thu Jul 06, 2023 8:52 am
Hi, I am struggling to get and update fixed points for muscle paths in python.
When using model.getMuscleList().getPathPointSet() I get an error "'AbstractPathPoint' object has no attribute 'get_location' ". I also cannot reach the vector value when running
state = model.initSystem()
loc = model.getMuscles().get(0).getGeometryPath().getPathPointSet().get(0).getLocation(state)
Can you help?
When using model.getMuscleList().getPathPointSet() I get an error "'AbstractPathPoint' object has no attribute 'get_location' ". I also cannot reach the vector value when running
state = model.initSystem()
loc = model.getMuscles().get(0).getGeometryPath().getPathPointSet().get(0).getLocation(state)
Can you help?