Solved it:
Tried initially
self.dHandles[limbName]=allHandles
but the dictionary kept returning only one value list.
Tried also
self.dHandles[limbName].append(allHandles)
with the same result.
Finally, got this to work like a charm:
self.dHandles.setdefault(limbName,[]).append(allHandles)
Had to do some digging, but happy with the result, and a lot cleaner than
my original code. Justin, thanks again for pointing out the redundancy.
@Eduardo: Thanks for the red9 links. Great stuff indeed. I'm on purpose
trying to get my own code in place. I'm writing an introductory primer on
rigging for those who want to learn how to be a TD. Part of the trial and
error process.
As for the message nodes, definitely something to explore, but that's a
more advanced stage.
--
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/810e971a-2385-4a31-b32d-801cdee83d35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.