Fernanda
AutoRigger Showcase | Leg Module
Updated: May 21, 2021
Missed the Arm Module? Check it out!
Here's the leg portion of the autorigger.
Not much to talk about on this one since the arm and leg modules share a lot of methods. That's the great thing about dividing your tools across multiple classes!
I usually write a master class that contains shared functions like "makeIK"/"makeFK"/"make twist setup"/etc., then I write the rest of the classes to inherit it. That gives each instance object access to the all the methods of the inherited class.
When writing tools like the "resize control" or "color control" button, I make them @staticmethod so I don't need an instance object to call them. That way I can have the UI widgets call the static methods directly without much of a hassle.
Thanks for reading and I hope you're enjoying the autorigger!
-Fernanda