El domingo, 5 de junio de 2016, 16:41:13 (UTC+2), Cesar Saez escribió:
>
> How many instances of your classes will you have around? If it's only 1 or 
> it's not holding any state get rid of it and use functions (you can 
> aggregate them in a module if you like).
>

Yes I have many instance, this just an example. I might have 15 methods in 
a subclass that would inherit the one or more methods from the superclass
 

> tl;dr: object oriented programming include the world object, not class, in 
> the name/description. Make sure you understand the difference between those 
> and everything will make sense.
>

I understand a class as a 'container' of similar methods and variables( 
class vars and instances vars). So I might have a class that operates on 
joints, another one related to skinning etc...  
the object is the instance of the class. so if I have a class Human, the 
object will be man = Human(). So now man will get the attributes ( the 
attributes being the vars and methods of the class ) 'via' dotted access
Is that right? I know than instance vars are the ones passded in the 
__init__(), etc..etc...I think I understand the basics of OOP. Of course 
correct me if what I said is wrong.

So, can someone give me a specific example of OOP applied to rigging. I 
don´t want another example about how the Vehicle is the superclass and the 
Car, Bike etc...are subclass because they are all vehicles, etc... 
I just would lke something specific, a real example of OOP applied to 
rigging because apparently I am doing it everything wrong. 

thx

-- 
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/541b3a2c-cccf-42dc-bd01-9a5ae5453e82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to