def buildExportTree(self, jointMovers): for jm in jointMovers: #top level wid1 = QtGui.QTreeWidgetItem() font = wid1.font(0) font.setPointSize(12) wid1.setFont(0, font) wid1.mover = jm.replace('_SDK', '_SDK_offset') wid1.setText(0, jm) self.moverTree.addTopLevelItem(wid1) wid1.setFlags(QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsUserCheckable) #check if enabled if not utils.shapesHidden(jm): wid1.setCheckState(0, QtCore.Qt.Checked) else: wid1.setCheckState(0, QtCore.Qt.Unchecked)
def activeJointMovers(self, debug=0): conns = cmds.listConnections(self.node + '.jointMovers') activeCons = [] if conns: for con in conns: if utils.shapesHidden(con) == False: if debug: print con, 'is not hidden and active' activeCons.append(con) else: if debug: print con, 'shapes hidden! not added.' return activeCons else: return []
def buildExportTree(self, jointMovers): for jm in jointMovers: #top level wid1 = QtGui.QTreeWidgetItem() font = wid1.font(0) font.setPointSize(12) wid1.setFont(0, font) wid1.mover = jm.replace('_SDK', '_SDK_offset') wid1.setText(0,jm) self.moverTree.addTopLevelItem(wid1) wid1.setFlags(QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsUserCheckable) #check if enabled if not utils.shapesHidden(jm): wid1.setCheckState(0, QtCore.Qt.Checked) else: wid1.setCheckState(0, QtCore.Qt.Unchecked)