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
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())
def installBanner(self): """""" cmds.frameLayout( lv=0, bv=0, cll=False) pic = cmds.iconTextStaticLabel( style='iconOnly', image=setup.getBanner()) cmds.setParent( ".." )
def installBanner(self): """""" cmds.frameLayout(lv=0, bv=0, cll=False) pic = cmds.iconTextStaticLabel(style='iconOnly', image=setup.getBanner()) cmds.setParent("..")