def createInnerUi(self, parent): rows = cmds.columnLayout(parent=parent, adjustableColumn=1, rowSpacing=Constants.MARGIN_SPACING_VERTICAL, width=400) BaseTab.createFixedTitledRow(rows, "Source") cmds.text(label=self.importer.sourceSkinCluster) BaseTab.createFixedTitledRow(rows, "Destination") cmds.text(label=self.importer.destinationSkinCluster) cmds.setParent(rows) cmds.text(label="Select influences to add to %s:" % self.importer.destinationSkinCluster, font='boldLabelFont', align='left') influences = self.remapToShorterNames( self.importer.listInfluencesDiff()) self.influencesList = cmds.textScrollList(numberOfRows=8, allowMultiSelection=True, append=influences, sc=self.updateSelectedItems) return rows
def create(self, parent): cmds.rowLayout(parent=parent, nc=2, adjustableColumn=2, columnWidth2=[Constants.MARGIN_COLUMN2, 50]) self.useSoftSelect = CheckBoxField( self.name + 'On', label='Use soft selection', defaultValue=0, annotation= 'extend effect outside selection with a fade out by defined distance' ) self.useSoftSelect.changeCommand.addHandler(self.uiChanged) self.nativeSoftSelect = CheckBoxField( self.name + 'Native', label='Native soft selection', defaultValue=0, annotation= 'use maya\'s soft selection instead of soft selection radius') self.nativeSoftSelect.changeCommand.addHandler(self.uiChanged) BaseTab.createFixedTitledRow(parent, "Selection radius") self.softSelectRadius = FloatField( self.name + 'Radius', minValue=0, defaultValue=1, step=0.1, annotation='soft selection radius is defined in world units') self.checkUiEnabled()
def create(self,parent): cmds.rowLayout(parent=parent,nc=2,adjustableColumn=2,columnWidth2=[Constants.MARGIN_COLUMN2,50]) self.useSoftSelect = CheckBoxField(self.name+'On',label='Use soft selection',defaultValue=0,annotation='extend effect outside selection with a fade out by defined distance') self.useSoftSelect.changeCommand.addHandler(self.uiChanged) self.nativeSoftSelect = CheckBoxField(self.name+'Native',label='Native soft selection',defaultValue=0,annotation='use maya\'s soft selection instead of soft selection radius') self.nativeSoftSelect.changeCommand.addHandler(self.uiChanged) BaseTab.createFixedTitledRow(parent, "Selection radius") self.softSelectRadius = FloatField(self.name+'Radius', minValue=0,defaultValue=1,step=0.1,annotation='soft selection radius is defined in world units') self.checkUiEnabled()
def createInnerUi(self, parent): rows=cmds.columnLayout(parent=parent, adjustableColumn=1,rowSpacing=Constants.MARGIN_SPACING_VERTICAL, width=400) BaseTab.createFixedTitledRow(rows, "Source") cmds.text(label=self.importer.sourceSkinCluster) BaseTab.createFixedTitledRow(rows, "Destination") cmds.text(label=self.importer.destinationSkinCluster) cmds.setParent(rows) cmds.text(label="Select influences to add to %s:" % self.importer.destinationSkinCluster,font='boldLabelFont',align='left') influences = self.remapToShorterNames(self.importer.listInfluencesDiff()) self.influencesList = cmds.textScrollList(numberOfRows=8,allowMultiSelection=True,append=influences,sc=self.updateSelectedItems) return rows
def createInnerUi(self,parent): #container = BaseTab.createScrollLayout(parent) rows=cmds.columnLayout(parent=parent, adjustableColumn=1,rowSpacing=Constants.MARGIN_SPACING_VERTICAL, width=400) BaseTab.createFixedTitledRow(rows, "Influence names") self.chkLongNames = CheckBoxField(AddPairDialog.CTRL_PREFIX+'longNames',label="Longer, where ambiguous",annotation="Show long names in drop down boxes") self.chkLongNames.changeCommand.addHandler(self.updateInfluenceLabels) BaseTab.createFixedTitledRow(rows, "Source influence") self.sourceDropdown = DropDownField(self.sourceValue) BaseTab.createFixedTitledRow(rows, None) self.chkSelfReference = CheckBoxField(AddPairDialog.CTRL_PREFIX+'selfReference',label="Self reference",annotation="Don't map to another influence, mirror on the same influence") self.chkSelfReference.changeCommand.addHandler(self.updateEnabled) self.chkBidirectional = CheckBoxField(AddPairDialog.CTRL_PREFIX+'bidirectional',label="Bidirectional association") self.destinationRow = BaseTab.createTitledRow(rows, "Destination influence") self.destinationDropdown = DropDownField(self.destinationValue) self.updateEnabled() self.updateInfluenceLabels() self.sourceDropdown.updateModel() self.destinationDropdown.updateModel() return rows
def createInnerUi(self, parent): #container = BaseTab.createScrollLayout(parent) rows = cmds.columnLayout(parent=parent, adjustableColumn=1, rowSpacing=Constants.MARGIN_SPACING_VERTICAL, width=400) BaseTab.createFixedTitledRow(rows, "Influence names") self.chkLongNames = CheckBoxField( AddPairDialog.CTRL_PREFIX + 'longNames', label="Longer, where ambiguous", annotation="Show long names in drop down boxes") self.chkLongNames.changeCommand.addHandler(self.updateInfluenceLabels) BaseTab.createFixedTitledRow(rows, "Source influence") self.sourceDropdown = DropDownField(self.sourceValue) BaseTab.createFixedTitledRow(rows, None) self.chkSelfReference = CheckBoxField( AddPairDialog.CTRL_PREFIX + 'selfReference', label="Self reference", annotation= "Don't map to another influence, mirror on the same influence") self.chkSelfReference.changeCommand.addHandler(self.updateEnabled) self.chkBidirectional = CheckBoxField( AddPairDialog.CTRL_PREFIX + 'bidirectional', label="Bidirectional association") self.destinationRow = BaseTab.createTitledRow(rows, "Destination influence") self.destinationDropdown = DropDownField(self.destinationValue) self.updateEnabled() self.updateInfluenceLabels() self.sourceDropdown.updateModel() self.destinationDropdown.updateModel() return rows