Skip to content

Instantly share code, notes, and snippets.

@theodox
Last active August 29, 2015 13:56
Show Gist options
  • Save theodox/9106403 to your computer and use it in GitHub Desktop.
Save theodox/9106403 to your computer and use it in GitHub Desktop.
class MetaButton(object):
CMD = cmds.button
__metaclass__ = ControlMeta
def __init__(self, *args, **kwargs):
self.Widget = self.CMD (*args, **kwargs)
w = cmds.window()
c = cmds.columnLayout()
mb = MetaButton("button1")
cmds.showWindow(w)
print mb.exists # We never had to add this one!
# True
print mb.visible # or this
# True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment