Classes can be used as a container but that's not necessarily a good reason in a language like python (thinking about inheritance as an usage for a class is a bit misleading imho, I would recommend to forget about subclasses at the beginning and go one step at a time).
Classes define the behavior of your entity (think of 'features', what the thing is capable to do) and the instance/object hold the state (the data associated to your entity, this usually changes as you go through the execution of your program). It's hard to give you a rigging example without going into too much details, but a very obvious use case could be a modular rigging system, where you define components (limb, fkchains, some sort of curve based component and so on) and then put everything together by instantiating those components and assigning different states (the position of the arm is not the same as the leg, but both are instances of the Limb class, same with what they are connected to and stuff like that.... all that state belongs to the objects, but its features are shared between both arms and legs on a biped rig). Cheers -- 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/CAPamJi-FRRU2tcGTvXfLs_nyyR5%2B453WFCFWXOD-eqTn-B9zEQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
