after googling a little bit about super, now i undestood that.
def makeIk(self):
> # do normal ik logic
> super(CartoonFeatures, self).makeIk()
>
> # do stretchy part here
>
> In this version, it would mean that no matter what kind of BaseLimbRig you
> had, you could always call makeIk() on it. Because of it being OOP, the
> message dispatches to the correct receiver and you get different
> implementations.
>
> but what if I did an extension in the CartoonFeatures
def makeIk(self):
# do normal ik logic
self.makeIk()
# do stretchy part here
isn“t that the same that you proposed?
--
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/1d6ed251-9d88-4918-9d77-75b5809f99ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.