Ejemplo n.º 1
0
 def installCreateButton(self):
     """"""
     form = cmds.formLayout()
     btn = cmds.iconTextButton(st='iconOnly',
                               l='Create',
                               i=setup.getBanner(),
                               c=lambda *args: self.createSoftDeformerCmd() )
     
     self.jointCheck = cmds.iconTextCheckBox(st='textOnly', l='   J   ',  ann="Create joint")
     cmds.formLayout(form,
                     e=1,
                     af=[(btn, 'left', 0),
                         (btn, 'right', 0),
                         (btn, 'top', 0),
                         (btn, 'bottom', 0),
                         (self.jointCheck, 'right', 0),
                         (self.jointCheck, 'top', 0)],
                     )
     cmds.setParent( '..' )
     return form
Ejemplo n.º 2
0
 def setCreateBtnIcon(self):
     """"""
     if cmds.iconTextCheckBox(self.jointCheck, q=1, v=1):
         cmds.iconTextButton(self.createBtn, e=1, i=setup.getBannerJ())
     else:
         cmds.iconTextButton(self.createBtn, e=1, i=setup.getBanner())
Ejemplo n.º 3
0
 def setCreateBtnIcon(self):
     """"""
     if cmds.iconTextCheckBox(self.jointCheck, q=1, v=1):
         cmds.iconTextButton(self.createBtn, e=1, i=setup.getBannerJ())
     else:
         cmds.iconTextButton(self.createBtn, e=1, i=setup.getBanner())
Ejemplo n.º 4
0
 def installBanner(self):
     """"""
     cmds.frameLayout( lv=0, bv=0, cll=False)
     pic = cmds.iconTextStaticLabel( style='iconOnly', image=setup.getBanner())
     cmds.setParent( ".." )
Ejemplo n.º 5
0
 def installBanner(self):
     """"""
     cmds.frameLayout(lv=0, bv=0, cll=False)
     pic = cmds.iconTextStaticLabel(style='iconOnly',
                                    image=setup.getBanner())
     cmds.setParent("..")