Subclassing PyMEL: Maya Transform
This is how you subclass PyMEL’s Transform Node to create custom shapes and node types that inherit all the methods of Maya’s Transformational Objects. Subclassing PyNodes is one of the (so-called ‘experimental’) hidden gems of PyMEL. This feature allows you to take advantage of all of the factory generated methods on each Maya node type.[…]