I'm trying to wrap my head around how I can utilize Python/PyMEL's OOP 
functionality when writing rigging-tools, but I'm struggling to transfer native 
Python examples over to Python in Maya.

Lets say I'm working on a arm-rig script, and I want the option to choose 
between four options (normal, FkIk, stretchy, elbowLock).

The problem I've faced with MEL is that I have to write four separate scripts 
to archieve this, because if I for instance want both FK/IK _and_ elbowLock, 
there's a huge amount of if's needed to being able to re-use code. Also, if I'm 
going to add another option later on there's gonna be really messy.


I was hoping someone could provide an example of using OOP in a rig-tool? Or 
maybe explain how to approach a script like the one I mentioned? I've searched 
around for an example like this for weeks without any luck :(

-- 
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 post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to