Example #1
0
    def reload(cls):
        "Reload the template. Beware, this reloads the module in which the template exists!"
        nodeType = cls.nodeType()
        form = "AttrEd" + nodeType + "FormLayout"
        exists = cmds.control(form, exists=1) and cmds.formLayout(form, q=1, ca=1)

        if exists:
            sel = cmds.ls(sl=1)
            cmds.select(cl=True)
            cmds.deleteUI(form)
            if sel:
                cmds.select(sel)
        reload(sys.modules[cls.__module__])
Example #2
0
    def reload(cls):
        "Reload the template. Beware, this reloads the module in which the template exists!"
        nodeType = cls.nodeType()
        form = "AttrEd" + nodeType + "FormLayout"
        exists = cmds.control(form, exists=1) and cmds.formLayout(form, q=1, ca=1)

        if exists:
            sel = cmds.ls(sl=1)
            cmds.select(cl=True)
            cmds.deleteUI(form)
            if sel:
                cmds.select(sel)
        reload(sys.modules[cls.__module__])
Example #3
0
    def reload(cls):
        nodeType = cls.nodeType()
        form = "AttrEd" + nodeType + "FormLayout"
        exists = cmds.control(form, exists=1) and cmds.formLayout(form, q=1, ca=1)

        if exists:
            sel = cmds.ls(sl=1)
            cmds.select(cl=True)
            cmds.deleteUI(form)
        aeScript = "AE" + nodeType + "Template.mel"
        _mm.eval('source "' + aeScript + '"')

        if exists:
            cmds.select(sel)
        reload(sys.modules[cls.__module__])
Example #4
0
 def attachPosition(self, *args):
     kwargs = {'edit': True}
     kwargs['attachPosition'] = [args]
     cmds.formLayout(self, **kwargs)
Example #5
0
 def attachNone(self, *args):
     kwargs = {'edit': True}
     kwargs['attachNone'] = [args]
     cmds.formLayout(self, **kwargs)
Example #6
0
 def attachControl(self, *args):
     kwargs = {'edit': True}
     kwargs['attachControl'] = [args]
     cmds.formLayout(self, **kwargs)
 def attachPosition(self, *args):
     kwargs = {'edit': True}
     kwargs['attachPosition'] = [args]
     cmds.formLayout(self, **kwargs)
 def attachNone(self, *args):
     kwargs = {'edit': True}
     kwargs['attachNone'] = [args]
     cmds.formLayout(self, **kwargs)
 def attachControl(self, *args):
     kwargs = {'edit': True}
     kwargs['attachControl'] = [args]
     cmds.formLayout(self, **kwargs)
Example #10
0
 def attachPosition(self, *args):
     kwargs = {"edit": True}
     kwargs["attachPosition"] = [args]
     cmds.formLayout(self, **kwargs)
Example #11
0
 def attachNone(self, *args):
     kwargs = {"edit": True}
     kwargs["attachNone"] = [args]
     cmds.formLayout(self, **kwargs)
Example #12
0
 def attachControl(self, *args):
     kwargs = {"edit": True}
     kwargs["attachControl"] = [args]
     cmds.formLayout(self, **kwargs)