Detailed description |
|
Loaded gait 2392 with 92 muscles and several dozen muscle groups. Tried to access and browse the groups as bellow.
>> model = getCurrentModel()
>> muscles = model.getMuscles()
>> muscles.getNumGroups()
0 # strange result considering I'm looking at several dozen groups in the gui
>> names = modeling.ArrayStr()
>> muscles.getGroupNames(names)
>> names.getSize()
0 # again, strange result. Maybe the groups are saved in the force set instead?
>> forces = model.getForceSet()
>> forces.getNumGroups()
30
>> forces.getGroupNames(names)
>> names.getSize()
30
>> names.get(0)
'hip_abd_r'
# aha! "muscle groups" are a lie! Groups represent collections of forces, not collections of muscles. the gui is misleasing. |
|