theodox / mGui

Python module for cleaner maya GUI layout syntax
MIT License
123 stars 23 forks source link

Adding support for Versioned Controls #75

Closed bob-white closed 7 years ago

bob-white commented 7 years ago

Potential solution for #72 This tweaks how we handle looking up the wrapped gui cmd, using getattr with a fallback on NotImplemented. This fallback is checked against in the metaclass, and if found the __init__ method is replaced by a version that raises a NotImplementedError informing the user know that the control probably comes from a future version of Maya.

Added WorkspaceControl a new 2017 command as an example.