Share 
Follow 
AboutDownloadsDocumentsForumsSource CodeIssuesNews
Date:
2014-06-07 00:21
Priority:
3
State:
Open
Submitted by:
Matt DeMers (mdemers)
Assigned to:
Nobody (None)
Summary:
Asking for or accessing Muscle Set groups/names reveals empty list

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.

Add A Comment: Notepad

No Comments Have Been Posted

No Changes Have Been Made to This Item

Feedback