Is there a cleaner, more efficient way of writing this dictionary loop?
jntsDict={}
jntsDict["leg"]=[["L_upLeg_JNT","L_knee_JNT","L_ankle_JNT"],
["R_upLeg_JNT","R_knee_JNT","R_ankle_JNT"]]
jntsDict["arm"]=[["L_upArm_JNT","L_elbow_JNT","L_wrist_JNT"],
["R_uparm_JNT","R_elbow_JNT","R_wrst_JNT"]]
for i,v in enumerate(jntsDict):
for x in range(len(jntsDict[v])):
for y in range(len(jntsDict[v][x])):
# print every value in the keys, to be used in rigging setup
print jntsDict[v][x][y]
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/25bc096a-6472-4ee1-adc8-14482431b547%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.