def setupUi(self, Form): Form.setObjectName("Form") Form.resize(294, 290) self.gridLayout = QtWidgets.QGridLayout(Form) self.gridLayout.setObjectName("gridLayout") self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setTitle("") self.groupBox.setObjectName("groupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.neutralPose_checkBox = QtWidgets.QCheckBox(self.groupBox) self.neutralPose_checkBox.setText("Neutral pose") self.neutralPose_checkBox.setObjectName("neutralPose_checkBox") self.verticalLayout.addWidget(self.neutralPose_checkBox) self.overrideNegate_checkBox = QtWidgets.QCheckBox(self.groupBox) self.overrideNegate_checkBox.setText( "Override Negate Axis Direction For \"R\" Side") self.overrideNegate_checkBox.setObjectName("overrideNegate_checkBox") self.verticalLayout.addWidget(self.overrideNegate_checkBox) self.addJoints_checkBox = QtWidgets.QCheckBox(self.groupBox) self.addJoints_checkBox.setText("Add Joints") self.addJoints_checkBox.setChecked(True) self.addJoints_checkBox.setObjectName("addJoints_checkBox") self.verticalLayout.addWidget(self.addJoints_checkBox) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem) self.gridLayout_2.addLayout(self.verticalLayout, 0, 0, 1, 1) self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(294, 211) self.gridLayout = QtWidgets.QGridLayout(Form) self.gridLayout.setObjectName("gridLayout") self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setTitle("") self.groupBox.setObjectName("groupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.neutralPose_checkBox = QtWidgets.QCheckBox(self.groupBox) self.neutralPose_checkBox.setText("Neutral Pose") self.neutralPose_checkBox.setObjectName("neutralPose_checkBox") self.verticalLayout.addWidget(self.neutralPose_checkBox) self.keepLength_checkBox = QtWidgets.QCheckBox(self.groupBox) self.keepLength_checkBox.setText("Keep Length") self.keepLength_checkBox.setObjectName("keepLength_checkBox") self.verticalLayout.addWidget(self.keepLength_checkBox) self.overrideNegate_checkBox = QtWidgets.QCheckBox(self.groupBox) self.overrideNegate_checkBox.setText( "Override Negate Axis Direction For \"R\" Side") self.overrideNegate_checkBox.setObjectName("overrideNegate_checkBox") self.verticalLayout.addWidget(self.overrideNegate_checkBox) self.gridLayout_2.addLayout(self.verticalLayout, 0, 0, 1, 1) self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1) self.groupBox_2 = QtWidgets.QGroupBox(Form) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_3.setObjectName("gridLayout_3") self.overrideJntNb_checkBox = QtWidgets.QCheckBox(self.groupBox_2) self.overrideJntNb_checkBox.setText("Override Joints Number") self.overrideJntNb_checkBox.setObjectName("overrideJntNb_checkBox") self.gridLayout_3.addWidget(self.overrideJntNb_checkBox, 0, 0, 1, 1) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.jntNb_label = QtWidgets.QLabel(self.groupBox_2) self.jntNb_label.setObjectName("jntNb_label") self.horizontalLayout.addWidget(self.jntNb_label) self.jntNb_spinBox = QtWidgets.QSpinBox(self.groupBox_2) self.jntNb_spinBox.setMinimum(1) self.jntNb_spinBox.setProperty("value", 3) self.jntNb_spinBox.setObjectName("jntNb_spinBox") self.horizontalLayout.addWidget(self.jntNb_spinBox) self.gridLayout_3.addLayout(self.horizontalLayout, 1, 0, 1, 1) self.gridLayout.addWidget(self.groupBox_2, 1, 0, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 2, 0, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def add_node_save_options(self): '''Save data to node option ''' self.node_option_cb = QtWidgets.QCheckBox() self.node_option_cb.setText("Save data to node") self.option_layout.addWidget(self.node_option_cb)
def create_controls(self): # type: () -> None self.groupBox = QtWidgets.QGroupBox() # must be implemented in each specialized classes self.setGroupBoxTitle() self.onlyKeyframes_check = QtWidgets.QCheckBox('Only Keyframe Frames') self.onlyKeyframes_check.setChecked(True) self.startFrame_label = QtWidgets.QLabel("Start") self.startFrame_value = QtWidgets.QSpinBox() self.startFrame_value = QtWidgets.QSpinBox() self.startFrame_value.setMinimum(-999999) self.startFrame_value.setMaximum(999999) self.endFrame_label = QtWidgets.QLabel("End") self.endFrame_value = QtWidgets.QSpinBox() self.endFrame_value.setMinimum(-999999) self.endFrame_value.setMaximum(999999) self.populateRange(True) self.allFrames_button = QtWidgets.QPushButton("All Frames") self.timeSliderFrames_button = QtWidgets.QPushButton( "Time Slider Frames") self.comboBoxSpaces = QtWidgets.QComboBox() self.comboBoxSpaces.addItems(self.comboItems) if self.comboObj is not None: self.comboBoxSpaces.setCurrentIndex(self.comboObj.currentIndex()) self.spaceTransfer_button = QtWidgets.QPushButton("Space Transfer")
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(217, 351) self.verticalLayout_2 = QtWidgets.QVBoxLayout(Form) self.verticalLayout_2.setObjectName("verticalLayout_2") self.groupBox_2 = QtWidgets.QGroupBox(Form) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout.setObjectName("gridLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.path_lineEdit = QtWidgets.QLineEdit(self.groupBox_2) self.path_lineEdit.setObjectName("path_lineEdit") self.horizontalLayout.addWidget(self.path_lineEdit) self.load_pushButton = QtWidgets.QPushButton(self.groupBox_2) self.load_pushButton.setObjectName("load_pushButton") self.horizontalLayout.addWidget(self.load_pushButton) self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.verticalLayout_2.addWidget(self.groupBox_2) self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setObjectName("groupBox") self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout.setObjectName("verticalLayout") self.missingGuide_checkBox = QtWidgets.QCheckBox(self.groupBox) self.missingGuide_checkBox.setChecked(True) self.missingGuide_checkBox.setObjectName("missingGuide_checkBox") self.verticalLayout.addWidget(self.missingGuide_checkBox) self.extraGuide_checkBox = QtWidgets.QCheckBox(self.groupBox) self.extraGuide_checkBox.setObjectName("extraGuide_checkBox") self.verticalLayout.addWidget(self.extraGuide_checkBox) self.transform_checkBox = QtWidgets.QCheckBox(self.groupBox) self.transform_checkBox.setChecked(True) self.transform_checkBox.setObjectName("transform_checkBox") self.verticalLayout.addWidget(self.transform_checkBox) self.rootSettings_checkBox = QtWidgets.QCheckBox(self.groupBox) self.rootSettings_checkBox.setChecked(True) self.rootSettings_checkBox.setObjectName("rootSettings_checkBox") self.verticalLayout.addWidget(self.rootSettings_checkBox) self.compSettings_checkBox = QtWidgets.QCheckBox(self.groupBox) self.compSettings_checkBox.setChecked(True) self.compSettings_checkBox.setObjectName("compSettings_checkBox") self.verticalLayout.addWidget(self.compSettings_checkBox) self.customStep_checkBox = QtWidgets.QCheckBox(self.groupBox) self.customStep_checkBox.setChecked(True) self.customStep_checkBox.setObjectName("customStep_checkBox") self.verticalLayout.addWidget(self.customStep_checkBox) self.verticalLayout_2.addWidget(self.groupBox) self.runTest_pushButton = QtWidgets.QPushButton(Form) self.runTest_pushButton.setObjectName("runTest_pushButton") self.verticalLayout_2.addWidget(self.runTest_pushButton) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def add_file_save_options(self): '''Add save to file options ''' self.file_option_cb = QtWidgets.QCheckBox() self.file_option_cb.setText("Save data to file") self.option_layout.addWidget(self.file_option_cb) file_layout = QtWidgets.QHBoxLayout() self.file_path_le = QtWidgets.QLineEdit() file_layout.addWidget(self.file_path_le) file_btn = basic.CallbackButton(callback=self.select_file_event) file_btn.setText("Select File") file_layout.addWidget(file_btn) self.option_layout.addLayout(file_layout)
def create_controls(self): # Geometry input controls self.geometryInput_group = QtWidgets.QGroupBox("Geometry Input") self.edgeloop_label = QtWidgets.QLabel("Edge Loop:") self.edgeloop_lineEdit = QtWidgets.QLineEdit() self.edgeloop_button = QtWidgets.QPushButton("<<") self.upVertex_label = QtWidgets.QLabel("Upper Vertex:") self.upVertex_lineEdit = QtWidgets.QLineEdit() self.upVertex_button = QtWidgets.QPushButton("<<") self.lowVertex_label = QtWidgets.QLabel("Lower Vertex:") self.lowVertex_lineEdit = QtWidgets.QLineEdit() self.lowVertex_button = QtWidgets.QPushButton("<<") # Name prefix self.prefix_group = QtWidgets.QGroupBox("Name Prefix") self.prefix_lineEdit = QtWidgets.QLineEdit() self.prefix_lineEdit.setText("lips") # control extension self.control_group = QtWidgets.QGroupBox("Control Name Extension") self.control_lineEdit = QtWidgets.QLineEdit() self.control_lineEdit.setText("ctl") # joints self.joints_group = QtWidgets.QGroupBox("Joints") self.headJnt_label = QtWidgets.QLabel("Head or Upper Lip Joint:") self.headJnt_lineEdit = QtWidgets.QLineEdit() self.headJnt_button = QtWidgets.QPushButton("<<") self.jawJnt_label = QtWidgets.QLabel("Jaw or Lower Lip Joint:") self.jawJnt_lineEdit = QtWidgets.QLineEdit() self.jawJnt_button = QtWidgets.QPushButton("<<") # Topological Autoskin self.topoSkin_group = QtWidgets.QGroupBox("Skin") self.rigidLoops_label = QtWidgets.QLabel("Rigid Loops:") self.rigidLoops_value = QtWidgets.QSpinBox() self.rigidLoops_value.setRange(0, 30) self.rigidLoops_value.setSingleStep(1) self.rigidLoops_value.setValue(5) self.falloffLoops_label = QtWidgets.QLabel("Falloff Loops:") self.falloffLoops_value = QtWidgets.QSpinBox() self.falloffLoops_value.setRange(0, 30) self.falloffLoops_value.setSingleStep(1) self.falloffLoops_value.setValue(8) self.topSkin_check = QtWidgets.QCheckBox( 'Compute Topological Autoskin') self.topSkin_check.setChecked(True) # Options self.options_group = QtWidgets.QGroupBox("Options") self.lipThickness_label = QtWidgets.QLabel("Lips Thickness:") self.lipThickness_value = QtWidgets.QDoubleSpinBox() self.lipThickness_value.setRange(0, 10) self.lipThickness_value.setSingleStep(.01) self.lipThickness_value.setValue(.03) self.parent_label = QtWidgets.QLabel("Static Rig Parent:") self.parent_lineEdit = QtWidgets.QLineEdit() self.parent_button = QtWidgets.QPushButton("<<") # Build button self.build_button = QtWidgets.QPushButton("Build Lips Rig") self.export_button = QtWidgets.QPushButton("Export Config to json")
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(252, 396) self.gridLayout_4 = QtWidgets.QGridLayout(Form) self.gridLayout_4.setContentsMargins(5, 5, 5, 5) self.gridLayout_4.setSpacing(0) self.gridLayout_4.setObjectName("gridLayout_4") self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setObjectName("groupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_2.setContentsMargins(6, 6, 6, 6) self.gridLayout_2.setSpacing(4) self.gridLayout_2.setObjectName("gridLayout_2") self.search_lineEdit = QtWidgets.QLineEdit(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.search_lineEdit.sizePolicy().hasHeightForWidth()) self.search_lineEdit.setSizePolicy(sizePolicy) self.search_lineEdit.setObjectName("search_lineEdit") self.gridLayout_2.addWidget(self.search_lineEdit, 1, 0, 1, 1) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.createLayer_pushButton = QtWidgets.QPushButton(self.groupBox) self.createLayer_pushButton.setMinimumSize(QtCore.QSize(150, 0)) self.createLayer_pushButton.setObjectName("createLayer_pushButton") self.horizontalLayout.addWidget(self.createLayer_pushButton) self.refresh_pushButton = QtWidgets.QPushButton(self.groupBox) self.refresh_pushButton.setMinimumSize(QtCore.QSize(70, 0)) self.refresh_pushButton.setObjectName("refresh_pushButton") self.horizontalLayout.addWidget(self.refresh_pushButton) self.gridLayout_2.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.layers_listView = QtWidgets.QListView(self.groupBox) self.layers_listView.setEditTriggers( QtWidgets.QAbstractItemView.NoEditTriggers) self.layers_listView.setProperty("showDropIndicator", False) self.layers_listView.setAlternatingRowColors(True) self.layers_listView.setSelectionMode( QtWidgets.QAbstractItemView.ExtendedSelection) self.layers_listView.setObjectName("layers_listView") self.gridLayout_2.addWidget(self.layers_listView, 2, 0, 1, 1) self.gridLayout_4.addWidget(self.groupBox, 0, 0, 1, 1) self.groupBox_2 = QtWidgets.QGroupBox(Form) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_3.setContentsMargins(6, 6, 6, 6) self.gridLayout_3.setSpacing(4) self.gridLayout_3.setObjectName("gridLayout_3") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label_4 = QtWidgets.QLabel(self.groupBox_2) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 1, 2, 1, 1) self.postHold_spinBox = QtWidgets.QSpinBox(self.groupBox_2) self.postHold_spinBox.setObjectName("postHold_spinBox") self.gridLayout.addWidget(self.postHold_spinBox, 2, 2, 1, 1) self.preHold_spinBox = QtWidgets.QSpinBox(self.groupBox_2) self.preHold_spinBox.setObjectName("preHold_spinBox") self.gridLayout.addWidget(self.preHold_spinBox, 2, 1, 1, 1) self.easeOut_spinBox = QtWidgets.QSpinBox(self.groupBox_2) self.easeOut_spinBox.setMinimum(0) self.easeOut_spinBox.setProperty("value", 1) self.easeOut_spinBox.setObjectName("easeOut_spinBox") self.gridLayout.addWidget(self.easeOut_spinBox, 2, 3, 1, 1) self.label = QtWidgets.QLabel(self.groupBox_2) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 1, 0, 1, 1) self.easeIn_spinBox = QtWidgets.QSpinBox(self.groupBox_2) self.easeIn_spinBox.setMinimum(0) self.easeIn_spinBox.setProperty("value", 1) self.easeIn_spinBox.setObjectName("easeIn_spinBox") self.gridLayout.addWidget(self.easeIn_spinBox, 2, 0, 1, 1) self.label_2 = QtWidgets.QLabel(self.groupBox_2) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 1, 3, 1, 1) self.label_3 = QtWidgets.QLabel(self.groupBox_2) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 1, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.addFrame_pushButton = QtWidgets.QPushButton(self.groupBox_2) self.addFrame_pushButton.setMinimumSize(QtCore.QSize(0, 45)) self.addFrame_pushButton.setObjectName("addFrame_pushButton") self.verticalLayout.addWidget(self.addFrame_pushButton) self.line_2 = QtWidgets.QFrame(self.groupBox_2) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.verticalLayout.addWidget(self.line_2) self.editFrame_pushButton = QtWidgets.QPushButton(self.groupBox_2) self.editFrame_pushButton.setObjectName("editFrame_pushButton") self.verticalLayout.addWidget(self.editFrame_pushButton) self.line = QtWidgets.QFrame(self.groupBox_2) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout.addWidget(self.line) self.gridLayout_3.addLayout(self.verticalLayout, 2, 0, 1, 1) self.keyframe_checkBox = QtWidgets.QCheckBox(self.groupBox_2) self.keyframe_checkBox.setChecked(True) self.keyframe_checkBox.setObjectName("keyframe_checkBox") self.gridLayout_3.addWidget(self.keyframe_checkBox, 1, 0, 1, 1) self.gridLayout_4.addWidget(self.groupBox_2, 1, 0, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def create_controls(self): # Geometry input controls self.geometryInput_group = QtWidgets.QGroupBox("Geometry Input") self.eyeball_label = QtWidgets.QLabel("Eyeball:") self.eyeMesh = QtWidgets.QLineEdit() self.eyeball_button = QtWidgets.QPushButton("<<") self.edgeloop_label = QtWidgets.QLabel("Edge Loop:") self.edgeLoop = QtWidgets.QLineEdit() self.edgeloop_button = QtWidgets.QPushButton("<<") # Manual corners self.manualCorners_group = QtWidgets.QGroupBox("Custom Eye Corners") self.customCorner = QtWidgets.QCheckBox("Set Manual Vertex Corners") self.customCorner.setChecked(False) self.intCorner_label = QtWidgets.QLabel("Internal Corner") self.intCorner = QtWidgets.QLineEdit() self.intCorner_button = QtWidgets.QPushButton("<<") self.extCorner_label = QtWidgets.QLabel("External Corner") self.extCorner = QtWidgets.QLineEdit() self.extCorner_button = QtWidgets.QPushButton("<<") # Blink heigh slider self.blinkHeight_group = QtWidgets.QGroupBox("Blink Height") self.blinkH = QtWidgets.QSpinBox() self.blinkH.setRange(0, 100) self.blinkH.setSingleStep(10) self.blinkH.setValue(20) self.blinkHeight_slider = QtWidgets.QSlider(QtCore.Qt.Horizontal) self.blinkHeight_slider.setRange(0, 100) self.blinkHeight_slider.setSingleStep( self.blinkHeight_slider.maximum() / 10.0) self.blinkHeight_slider.setValue(20) # vTrack and hTrack self.tracking_group = QtWidgets.QGroupBox("Tracking") self.upperVTrack = QtWidgets.QDoubleSpinBox() self.upperVTrack.setValue(0.02) self.upperHTrack = QtWidgets.QDoubleSpinBox() self.upperHTrack.setValue(0.01) self.lowerVTrack = QtWidgets.QDoubleSpinBox() self.lowerVTrack.setValue(0.02) self.lowerHTrack = QtWidgets.QDoubleSpinBox() self.lowerHTrack.setValue(0.01) # Name prefix self.prefix_group = QtWidgets.QGroupBox("Name Prefix") self.namePrefix = QtWidgets.QLineEdit() self.namePrefix.setText("eye") self.control_group = QtWidgets.QGroupBox("Control Name Extension") self.ctlName = QtWidgets.QLineEdit() self.ctlName.setText("ctl") # joints self.joints_group = QtWidgets.QGroupBox("Joints") self.headJnt_label = QtWidgets.QLabel("Head or Eye area Joint:") self.headJnt = QtWidgets.QLineEdit() self.headJnt_button = QtWidgets.QPushButton("<<") self.everyNVertex_label = QtWidgets.QLabel( "Create Joint evey N number of Vertex:") self.everyNVertex = QtWidgets.QSpinBox() self.everyNVertex.setRange(0, 100) self.everyNVertex.setSingleStep(1) self.everyNVertex.setValue(1) # Topological Autoskin self.topoSkin_group = QtWidgets.QGroupBox("Skin") self.rigidLoops_label = QtWidgets.QLabel("Rigid Loops:") self.rigidLoops = QtWidgets.QSpinBox() self.rigidLoops.setRange(0, 30) self.rigidLoops.setSingleStep(1) self.rigidLoops.setValue(2) self.falloffLoops_label = QtWidgets.QLabel("Falloff Loops:") self.falloffLoops = QtWidgets.QSpinBox() self.falloffLoops.setRange(0, 30) self.falloffLoops.setSingleStep(1) self.falloffLoops.setValue(4) self.doSkin = QtWidgets.QCheckBox("Compute Topological Autoskin") self.doSkin.setChecked(True) # Options self.options_group = QtWidgets.QGroupBox("Options") self.parent_label = QtWidgets.QLabel("Rig Parent:") self.parent_node = QtWidgets.QLineEdit() self.parent_button = QtWidgets.QPushButton("<<") self.aim_controller_label = QtWidgets.QLabel("Aim Controller:") self.aim_controller = QtWidgets.QLineEdit() self.aim_controller_button = QtWidgets.QPushButton("<<") self.ctlShapeOffset_label = QtWidgets.QLabel("Controls Offset:") self.offset = QtWidgets.QDoubleSpinBox() self.offset.setRange(0, 10) self.offset.setSingleStep(0.05) self.offset.setValue(0.05) self.sideRange = QtWidgets.QCheckBox( "Use Z axis for wide calculation (i.e: Horse and fish side eyes)") self.sideRange.setChecked(False) self.ctlSet_label = QtWidgets.QLabel("Controls Set:") self.ctlSet = QtWidgets.QLineEdit() self.ctlSet_button = QtWidgets.QPushButton("<<") self.deformersSet_label = QtWidgets.QLabel("Deformers Set:") self.defSet = QtWidgets.QLineEdit() self.deformersSet_button = QtWidgets.QPushButton("<<") self.deformers_group_label = QtWidgets.QLabel("Static Rig Parent:") self.deformers_group = QtWidgets.QLineEdit() self.deformers_group_button = QtWidgets.QPushButton("<<") # Main buttons self.build_button = QtWidgets.QPushButton("Build Eye Rig") self.import_button = QtWidgets.QPushButton("Import Config from json") self.export_button = QtWidgets.QPushButton("Export Config to json")
def config_table(self): def value_update(attr_config, *args): """Update the attribute from the channel value Args: ch (QWidget): The channel widget atttr_config (dict): attribute configuration data *args: the current value """ if self.trigger_value_update: try: cmds.setAttr(self.namespace_sync(attr_config["fullName"]), args[0]) # refresh button color while value update for i in xrange(self.rowCount()): item = self.item(i, 0) attr = item.data(QtCore.Qt.UserRole) if (self.namespace_sync(attr["fullName"]) == self.namespace_sync( attr_config["fullName"])): button = self.cellWidget(i, 1) refresh_key_button_color( button, self.namespace_sync(attr_config["fullName"])) break except RuntimeError: fname = self.namespace_sync(attr_config["fullName"]) pm.displayWarning("Channel {} not Found.".format(fname) + " Maybe the channel master" + " contains not existing channels. " + "Review Channel Master configuration") def open_undo_chunk(): cmds.undoInfo(openChunk=True) def close_undo_chunk(): cmds.undoInfo(closeChunk=True) if not self.chan_config: return i = 0 for ch in self.chan_config["channels"]: at = self.chan_config["channels_data"][ch] at_name = self.namespace_sync(at["fullName"]) try: val = cmds.getAttr(at_name) except ValueError: pm.displayWarning( "{} not found. Maybe wrong NameSpace?".format(at_name)) continue if at["type"] in cmu.ATTR_SLIDER_TYPES: if at["type"] == "long": Type = "int" else: Type = "float" ch_ctl = pyflow_widgets.pyf_Slider(self, Type=Type, defaultValue=val, sliderRange=(at["min"], at["max"])) ch_ctl.valueChanged.connect( partial(value_update, at)) ch_ctl.sliderPressed.connect(open_undo_chunk) ch_ctl.sliderReleased.connect(close_undo_chunk) elif at["type"] == "bool": ch_ctl = QtWidgets.QWidget() layout = QtWidgets.QHBoxLayout(ch_ctl) cbox = QtWidgets.QCheckBox() cbox.setStyleSheet(CHECKBOX_STYLE) ch_ctl.setStyleSheet(CHECKBOX_STYLE) layout.addWidget(cbox) layout.setAlignment(QtCore.Qt.AlignCenter) layout.setContentsMargins(0, 0, 0, 0) ch_ctl.setLayout(layout) if val: cbox.setChecked(True) cbox.toggled.connect( partial(value_update, at)) elif at["type"] == "enum": # we handle special naming for separators if at["niceName"] == "__________": continue else: ch_ctl = QtWidgets.QComboBox() ch_ctl.addItems(at["items"]) ch_ctl.setCurrentIndex(val) ch_ctl.currentIndexChanged.connect( partial(value_update, at)) label_item = QtWidgets.QTableWidgetItem(at["niceName"] + " ") if at["color"]: color = QtGui.QColor() color.setRgbF(*at["color"]) label_item.setBackground(color) label_item.setData(QtCore.Qt.UserRole, at) label_item.setTextAlignment(QtCore.Qt.AlignRight) label_item.setToolTip(self.namespace_sync(at["fullName"])) label_item.setFlags(label_item.flags() ^ QtCore.Qt.ItemIsEditable) key_button = self.create_key_button(at) self.insertRow(i) self.setRowHeight(i, 17) self.setItem(i, 0, label_item) self.setCellWidget(i, 1, key_button) self.setCellWidget(i, 2, ch_ctl) self.track_widgets.append([key_button, ch_ctl]) i += 1
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(286, 518) self.gridLayout = QtWidgets.QGridLayout(Form) self.gridLayout.setObjectName("gridLayout") spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 5, 0, 1, 1) self.groupBox = QtWidgets.QGroupBox(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setObjectName("groupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.host_label = QtWidgets.QLabel(self.groupBox) self.host_label.setObjectName("host_label") self.horizontalLayout_2.addWidget(self.host_label) self.host_lineEdit = QtWidgets.QLineEdit(self.groupBox) self.host_lineEdit.setObjectName("host_lineEdit") self.horizontalLayout_2.addWidget(self.host_lineEdit) self.host_pushButton = QtWidgets.QPushButton(self.groupBox) self.host_pushButton.setObjectName("host_pushButton") self.horizontalLayout_2.addWidget(self.host_pushButton) self.gridLayout_2.addLayout(self.horizontalLayout_2, 0, 0, 1, 1) self.gridLayout.addWidget(self.groupBox, 2, 0, 1, 1) self.groupBox_4 = QtWidgets.QGroupBox(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox_4.sizePolicy().hasHeightForWidth()) self.groupBox_4.setSizePolicy(sizePolicy) self.groupBox_4.setObjectName("groupBox_4") self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_4) self.gridLayout_8.setObjectName("gridLayout_8") self.gridLayout_7 = QtWidgets.QGridLayout() self.gridLayout_7.setObjectName("gridLayout_7") self.gridLayout_9 = QtWidgets.QGridLayout() self.gridLayout_9.setObjectName("gridLayout_9") self.color_fk_label = QtWidgets.QLabel(self.groupBox_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.color_fk_label.sizePolicy().hasHeightForWidth()) self.color_fk_label.setSizePolicy(sizePolicy) self.color_fk_label.setMinimumSize(QtCore.QSize(0, 0)) self.color_fk_label.setText("") self.color_fk_label.setObjectName("color_fk_label") self.gridLayout_9.addWidget(self.color_fk_label, 0, 1, 1, 1) self.color_fk_spinBox = QtWidgets.QSpinBox(self.groupBox_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.color_fk_spinBox.sizePolicy().hasHeightForWidth()) self.color_fk_spinBox.setSizePolicy(sizePolicy) self.color_fk_spinBox.setMaximum(31) self.color_fk_spinBox.setObjectName("color_fk_spinBox") self.gridLayout_9.addWidget(self.color_fk_spinBox, 0, 2, 1, 1) self.RGB_fk_pushButton = QtWidgets.QPushButton(self.groupBox_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.RGB_fk_pushButton.sizePolicy().hasHeightForWidth()) self.RGB_fk_pushButton.setSizePolicy(sizePolicy) self.RGB_fk_pushButton.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.RGB_fk_pushButton.setLayoutDirection(QtCore.Qt.LeftToRight) self.RGB_fk_pushButton.setStyleSheet("") self.RGB_fk_pushButton.setText("") self.RGB_fk_pushButton.setObjectName("RGB_fk_pushButton") self.gridLayout_9.addWidget(self.RGB_fk_pushButton, 0, 3, 1, 1) self.RGB_fk_slider = QtWidgets.QSlider(self.groupBox_4) self.RGB_fk_slider.setMaximum(255) self.RGB_fk_slider.setOrientation(QtCore.Qt.Horizontal) self.RGB_fk_slider.setObjectName("RGB_fk_slider") self.gridLayout_9.addWidget(self.RGB_fk_slider, 0, 4, 1, 1) self.fk_label_2 = QtWidgets.QLabel(self.groupBox_4) self.fk_label_2.setObjectName("fk_label_2") self.gridLayout_9.addWidget(self.fk_label_2, 0, 0, 1, 1) self.gridLayout_7.addLayout(self.gridLayout_9, 1, 0, 1, 1) self.gridLayout_10 = QtWidgets.QGridLayout() self.gridLayout_10.setObjectName("gridLayout_10") self.color_ik_spinBox = QtWidgets.QSpinBox(self.groupBox_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.color_ik_spinBox.sizePolicy().hasHeightForWidth()) self.color_ik_spinBox.setSizePolicy(sizePolicy) self.color_ik_spinBox.setMaximum(31) self.color_ik_spinBox.setObjectName("color_ik_spinBox") self.gridLayout_10.addWidget(self.color_ik_spinBox, 0, 2, 1, 1) self.color_ik_label = QtWidgets.QLabel(self.groupBox_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.color_ik_label.sizePolicy().hasHeightForWidth()) self.color_ik_label.setSizePolicy(sizePolicy) self.color_ik_label.setMinimumSize(QtCore.QSize(0, 0)) self.color_ik_label.setText("") self.color_ik_label.setObjectName("color_ik_label") self.gridLayout_10.addWidget(self.color_ik_label, 0, 1, 1, 1) self.RGB_ik_pushButton = QtWidgets.QPushButton(self.groupBox_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.RGB_ik_pushButton.sizePolicy().hasHeightForWidth()) self.RGB_ik_pushButton.setSizePolicy(sizePolicy) self.RGB_ik_pushButton.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.RGB_ik_pushButton.setLayoutDirection(QtCore.Qt.LeftToRight) self.RGB_ik_pushButton.setStyleSheet("") self.RGB_ik_pushButton.setText("") self.RGB_ik_pushButton.setObjectName("RGB_ik_pushButton") self.gridLayout_10.addWidget(self.RGB_ik_pushButton, 0, 3, 1, 1) self.RGB_ik_slider = QtWidgets.QSlider(self.groupBox_4) self.RGB_ik_slider.setMaximum(255) self.RGB_ik_slider.setOrientation(QtCore.Qt.Horizontal) self.RGB_ik_slider.setObjectName("RGB_ik_slider") self.gridLayout_10.addWidget(self.RGB_ik_slider, 0, 4, 1, 1) self.ik_label = QtWidgets.QLabel(self.groupBox_4) self.ik_label.setObjectName("ik_label") self.gridLayout_10.addWidget(self.ik_label, 0, 0, 1, 1) self.gridLayout_7.addLayout(self.gridLayout_10, 1, 1, 1, 1) self.overrideColors_checkBox = QtWidgets.QCheckBox(self.groupBox_4) self.overrideColors_checkBox.setObjectName("overrideColors_checkBox") self.gridLayout_7.addWidget(self.overrideColors_checkBox, 0, 0, 1, 1) self.useRGB_checkBox = QtWidgets.QCheckBox(self.groupBox_4) self.useRGB_checkBox.setObjectName("useRGB_checkBox") self.gridLayout_7.addWidget(self.useRGB_checkBox, 0, 1, 1, 1) self.gridLayout_8.addLayout(self.gridLayout_7, 2, 0, 1, 1) self.gridLayout.addWidget(self.groupBox_4, 4, 0, 1, 1) self.mainSettings_groupBox = QtWidgets.QGroupBox(Form) self.mainSettings_groupBox.setTitle("") self.mainSettings_groupBox.setObjectName("mainSettings_groupBox") self.gridLayout_4 = QtWidgets.QGridLayout(self.mainSettings_groupBox) self.gridLayout_4.setObjectName("gridLayout_4") self.formLayout = QtWidgets.QFormLayout() self.formLayout.setObjectName("formLayout") self.name_label = QtWidgets.QLabel(self.mainSettings_groupBox) self.name_label.setObjectName("name_label") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.name_label) self.name_lineEdit = QtWidgets.QLineEdit(self.mainSettings_groupBox) self.name_lineEdit.setObjectName("name_lineEdit") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.name_lineEdit) self.side_label = QtWidgets.QLabel(self.mainSettings_groupBox) self.side_label.setObjectName("side_label") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.side_label) self.side_comboBox = QtWidgets.QComboBox(self.mainSettings_groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.side_comboBox.sizePolicy().hasHeightForWidth()) self.side_comboBox.setSizePolicy(sizePolicy) self.side_comboBox.setObjectName("side_comboBox") self.side_comboBox.addItem("") self.side_comboBox.addItem("") self.side_comboBox.addItem("") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.side_comboBox) self.componentIndex_label = QtWidgets.QLabel( self.mainSettings_groupBox) self.componentIndex_label.setObjectName("componentIndex_label") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.componentIndex_label) self.componentIndex_spinBox = QtWidgets.QSpinBox( self.mainSettings_groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.componentIndex_spinBox.sizePolicy().hasHeightForWidth()) self.componentIndex_spinBox.setSizePolicy(sizePolicy) self.componentIndex_spinBox.setObjectName("componentIndex_spinBox") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.componentIndex_spinBox) self.conector_label = QtWidgets.QLabel(self.mainSettings_groupBox) self.conector_label.setObjectName("conector_label") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.conector_label) self.connector_comboBox = QtWidgets.QComboBox( self.mainSettings_groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.connector_comboBox.sizePolicy().hasHeightForWidth()) self.connector_comboBox.setSizePolicy(sizePolicy) self.connector_comboBox.setObjectName("connector_comboBox") self.connector_comboBox.addItem("") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.connector_comboBox) self.gridLayout_4.addLayout(self.formLayout, 0, 0, 1, 1) self.gridLayout.addWidget(self.mainSettings_groupBox, 0, 0, 1, 1) self.groupBox_2 = QtWidgets.QGroupBox(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox_2.sizePolicy().hasHeightForWidth()) self.groupBox_2.setSizePolicy(sizePolicy) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_5.setObjectName("gridLayout_5") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.subGroup_lineEdit = QtWidgets.QLineEdit(self.groupBox_2) self.subGroup_lineEdit.setObjectName("subGroup_lineEdit") self.horizontalLayout_3.addWidget(self.subGroup_lineEdit) self.gridLayout_5.addLayout(self.horizontalLayout_3, 0, 0, 1, 1) self.gridLayout.addWidget(self.groupBox_2, 3, 0, 1, 1) self.jointSettings_groupBox = QtWidgets.QGroupBox(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.jointSettings_groupBox.sizePolicy().hasHeightForWidth()) self.jointSettings_groupBox.setSizePolicy(sizePolicy) self.jointSettings_groupBox.setObjectName("jointSettings_groupBox") self.gridLayout_3 = QtWidgets.QGridLayout(self.jointSettings_groupBox) self.gridLayout_3.setObjectName("gridLayout_3") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setContentsMargins(-1, -1, -1, 0) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.useJointIndex_checkBox = QtWidgets.QCheckBox( self.jointSettings_groupBox) self.useJointIndex_checkBox.setObjectName("useJointIndex_checkBox") self.horizontalLayout_5.addWidget(self.useJointIndex_checkBox) self.parentJointIndex_spinBox = QtWidgets.QSpinBox( self.jointSettings_groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.parentJointIndex_spinBox.sizePolicy().hasHeightForWidth()) self.parentJointIndex_spinBox.setSizePolicy(sizePolicy) self.parentJointIndex_spinBox.setMinimum(-1) self.parentJointIndex_spinBox.setMaximum(999999) self.parentJointIndex_spinBox.setProperty("value", -1) self.parentJointIndex_spinBox.setObjectName("parentJointIndex_spinBox") self.horizontalLayout_5.addWidget(self.parentJointIndex_spinBox) self.verticalLayout.addLayout(self.horizontalLayout_5) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.jointNames_label = QtWidgets.QLabel(self.jointSettings_groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.jointNames_label.sizePolicy().hasHeightForWidth()) self.jointNames_label.setSizePolicy(sizePolicy) self.jointNames_label.setMinimumSize(QtCore.QSize(0, 0)) self.jointNames_label.setObjectName("jointNames_label") self.horizontalLayout.addWidget(self.jointNames_label) self.jointNames_pushButton = QtWidgets.QPushButton( self.jointSettings_groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.jointNames_pushButton.sizePolicy().hasHeightForWidth()) self.jointNames_pushButton.setSizePolicy(sizePolicy) self.jointNames_pushButton.setObjectName("jointNames_pushButton") self.horizontalLayout.addWidget(self.jointNames_pushButton) self.verticalLayout.addLayout(self.horizontalLayout) self.groupBox_3 = QtWidgets.QGroupBox(self.jointSettings_groupBox) self.groupBox_3.setObjectName("groupBox_3") self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.groupBox_3) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.joint_offset_x_doubleSpinBox = QtWidgets.QDoubleSpinBox( self.groupBox_3) self.joint_offset_x_doubleSpinBox.setMinimum(-360.0) self.joint_offset_x_doubleSpinBox.setMaximum(360.0) self.joint_offset_x_doubleSpinBox.setSingleStep(90.0) self.joint_offset_x_doubleSpinBox.setObjectName( "joint_offset_x_doubleSpinBox") self.horizontalLayout_4.addWidget(self.joint_offset_x_doubleSpinBox) self.joint_offset_y_doubleSpinBox = QtWidgets.QDoubleSpinBox( self.groupBox_3) self.joint_offset_y_doubleSpinBox.setMinimum(-360.0) self.joint_offset_y_doubleSpinBox.setMaximum(360.0) self.joint_offset_y_doubleSpinBox.setSingleStep(90.0) self.joint_offset_y_doubleSpinBox.setObjectName( "joint_offset_y_doubleSpinBox") self.horizontalLayout_4.addWidget(self.joint_offset_y_doubleSpinBox) self.joint_offset_z_doubleSpinBox = QtWidgets.QDoubleSpinBox( self.groupBox_3) self.joint_offset_z_doubleSpinBox.setMinimum(-360.0) self.joint_offset_z_doubleSpinBox.setMaximum(360.0) self.joint_offset_z_doubleSpinBox.setSingleStep(90.0) self.joint_offset_z_doubleSpinBox.setObjectName( "joint_offset_z_doubleSpinBox") self.horizontalLayout_4.addWidget(self.joint_offset_z_doubleSpinBox) self.verticalLayout.addWidget(self.groupBox_3) self.gridLayout_3.addLayout(self.verticalLayout, 0, 0, 1, 1) self.gridLayout.addWidget(self.jointSettings_groupBox, 1, 0, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def create_controls(self): # Geometry input controls self.geometryInput_group = QtWidgets.QGroupBox("Geometry Input") self.eyeball_label = QtWidgets.QLabel("Eyeball:") self.eyeball_lineEdit = QtWidgets.QLineEdit() self.eyeball_button = QtWidgets.QPushButton("<<") self.edgeloop_label = QtWidgets.QLabel("Edge Loop:") self.edgeloop_lineEdit = QtWidgets.QLineEdit() self.edgeloop_button = QtWidgets.QPushButton("<<") # Manual corners self.manualCorners_group = QtWidgets.QGroupBox("Custom Eye Corners") self.manualCorners_check = QtWidgets.QCheckBox( "Set Manual Vertex Corners") self.manualCorners_check.setChecked(False) self.intCorner_label = QtWidgets.QLabel("Internal Corner") self.intCorner_lineEdit = QtWidgets.QLineEdit() self.intCorner_button = QtWidgets.QPushButton("<<") self.extCorner_label = QtWidgets.QLabel("External Corner") self.extCorner_lineEdit = QtWidgets.QLineEdit() self.extCorner_button = QtWidgets.QPushButton("<<") # Blink heigh slider self.blinkHeigh_group = QtWidgets.QGroupBox("Blink High") self.blinkHeight_value = QtWidgets.QSpinBox() self.blinkHeight_value.setRange(0, 100) self.blinkHeight_value.setSingleStep(10) self.blinkHeight_value.setValue(20) self.blinkHeight_slider = QtWidgets.QSlider(QtCore.Qt.Horizontal) self.blinkHeight_slider.setRange(0, 100) self.blinkHeight_slider.setSingleStep( self.blinkHeight_slider.maximum() / 10.0) self.blinkHeight_slider.setValue(20) # Name prefix self.prefix_group = QtWidgets.QGroupBox("Name Prefix") self.prefix_lineEdit = QtWidgets.QLineEdit() self.prefix_lineEdit.setText("eye") self.control_group = QtWidgets.QGroupBox("Control Name Extension") self.control_lineEdit = QtWidgets.QLineEdit() self.control_lineEdit.setText("ctl") # joints self.joints_group = QtWidgets.QGroupBox("Joints") self.headJnt_label = QtWidgets.QLabel("Head or Eye area Joint:") self.headJnt_lineEdit = QtWidgets.QLineEdit() self.headJnt_button = QtWidgets.QPushButton("<<") # Topological Autoskin self.topoSkin_group = QtWidgets.QGroupBox("Skin") self.rigidLoops_label = QtWidgets.QLabel("Rigid Loops:") self.rigidLoops_value = QtWidgets.QSpinBox() self.rigidLoops_value.setRange(0, 30) self.rigidLoops_value.setSingleStep(1) self.rigidLoops_value.setValue(2) self.falloffLoops_label = QtWidgets.QLabel("Falloff Loops:") self.falloffLoops_value = QtWidgets.QSpinBox() self.falloffLoops_value.setRange(0, 30) self.falloffLoops_value.setSingleStep(1) self.falloffLoops_value.setValue(4) self.topSkin_check = QtWidgets.QCheckBox( 'Compute Topological Autoskin') self.topSkin_check.setChecked(True) # Options self.options_group = QtWidgets.QGroupBox("Options") self.parent_label = QtWidgets.QLabel("Rig Parent:") self.parent_lineEdit = QtWidgets.QLineEdit() self.parent_button = QtWidgets.QPushButton("<<") self.ctlShapeOffset_label = QtWidgets.QLabel("Controls Offset:") self.ctlShapeOffset_value = QtWidgets.QDoubleSpinBox() self.ctlShapeOffset_value.setRange(0, 10) self.ctlShapeOffset_value.setSingleStep(.05) self.ctlShapeOffset_value.setValue(.05) self.sideRange_check = QtWidgets.QCheckBox( "Use Z axis for wide calculation (i.e: Horse and fish side eyes)") self.sideRange_check.setChecked(False) self.ctlGrp_label = QtWidgets.QLabel("Controls Group:") self.ctlGrp_lineEdit = QtWidgets.QLineEdit() self.ctlGrp_button = QtWidgets.QPushButton("<<") self.deformersGrp_label = QtWidgets.QLabel("Deformers Group:") self.deformersGrp_lineEdit = QtWidgets.QLineEdit() self.deformersGrp_button = QtWidgets.QPushButton("<<") # Build button self.build_button = QtWidgets.QPushButton("Build Eye Rig") self.export_button = QtWidgets.QPushButton("Export Config to json")
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(359, 526) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.gridLayout_7 = QtWidgets.QGridLayout(self.centralwidget) self.gridLayout_7.setObjectName("gridLayout_7") self.tabWidget = QtWidgets.QTabWidget(self.centralwidget) self.tabWidget.setObjectName("tabWidget") self.rig_tab = QtWidgets.QWidget() self.rig_tab.setObjectName("rig_tab") self.gridLayout_6 = QtWidgets.QGridLayout(self.rig_tab) self.gridLayout_6.setObjectName("gridLayout_6") self.createRoot_pushButton = QtWidgets.QPushButton(self.rig_tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.createRoot_pushButton.sizePolicy().hasHeightForWidth()) self.createRoot_pushButton.setSizePolicy(sizePolicy) self.createRoot_pushButton.setObjectName("createRoot_pushButton") self.gridLayout_6.addWidget(self.createRoot_pushButton, 0, 0, 1, 1) self.groupBox_3 = QtWidgets.QGroupBox(self.rig_tab) self.groupBox_3.setObjectName("groupBox_3") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_3) self.gridLayout_2.setObjectName("gridLayout_2") self.createCtl_lineEdit = QtWidgets.QLineEdit(self.groupBox_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.createCtl_lineEdit.sizePolicy().hasHeightForWidth()) self.createCtl_lineEdit.setSizePolicy(sizePolicy) self.createCtl_lineEdit.setMinimumSize(QtCore.QSize(150, 0)) self.createCtl_lineEdit.setObjectName("createCtl_lineEdit") self.gridLayout_2.addWidget(self.createCtl_lineEdit, 1, 0, 1, 1) self.createCtl_pushButton = QtWidgets.QPushButton(self.groupBox_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.createCtl_pushButton.sizePolicy().hasHeightForWidth()) self.createCtl_pushButton.setSizePolicy(sizePolicy) self.createCtl_pushButton.setMinimumSize(QtCore.QSize(0, 30)) self.createCtl_pushButton.setObjectName("createCtl_pushButton") self.gridLayout_2.addWidget(self.createCtl_pushButton, 3, 0, 1, 1) self.formLayout_2 = QtWidgets.QFormLayout() self.formLayout_2.setObjectName("formLayout_2") self.label = QtWidgets.QLabel(self.groupBox_3) self.label.setObjectName("label") self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label) self.side_comboBox = QtWidgets.QComboBox(self.groupBox_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.side_comboBox.sizePolicy().hasHeightForWidth()) self.side_comboBox.setSizePolicy(sizePolicy) self.side_comboBox.setObjectName("side_comboBox") self.side_comboBox.addItem("") self.side_comboBox.addItem("") self.side_comboBox.addItem("") self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.side_comboBox) self.label_3 = QtWidgets.QLabel(self.groupBox_3) self.label_3.setObjectName("label_3") self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_3) self.position_comboBox = QtWidgets.QComboBox(self.groupBox_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.position_comboBox.sizePolicy().hasHeightForWidth()) self.position_comboBox.setSizePolicy(sizePolicy) self.position_comboBox.setObjectName("position_comboBox") self.position_comboBox.addItem("") self.position_comboBox.addItem("") self.position_comboBox.addItem("") self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.position_comboBox) self.label_2 = QtWidgets.QLabel(self.groupBox_3) self.label_2.setObjectName("label_2") self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_2) self.shape_comboBox = QtWidgets.QComboBox(self.groupBox_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.shape_comboBox.sizePolicy().hasHeightForWidth()) self.shape_comboBox.setSizePolicy(sizePolicy) self.shape_comboBox.setObjectName("shape_comboBox") self.shape_comboBox.addItem("") self.shape_comboBox.addItem("") self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.shape_comboBox) self.gridLayout_2.addLayout(self.formLayout_2, 2, 0, 1, 1) self.gridLayout_6.addWidget(self.groupBox_3, 1, 0, 1, 1) self.groupBox_2 = QtWidgets.QGroupBox(self.rig_tab) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout.setObjectName("gridLayout") self.groupBox_4 = QtWidgets.QGroupBox(self.groupBox_2) self.groupBox_4.setObjectName("groupBox_4") self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_4) self.gridLayout_4.setObjectName("gridLayout_4") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.remove_pushButton = QtWidgets.QPushButton(self.groupBox_4) self.remove_pushButton.setMinimumSize(QtCore.QSize(45, 50)) self.remove_pushButton.setObjectName("remove_pushButton") self.horizontalLayout.addWidget(self.remove_pushButton) self.add_pushButton = QtWidgets.QPushButton(self.groupBox_4) self.add_pushButton.setMinimumSize(QtCore.QSize(45, 50)) self.add_pushButton.setObjectName("add_pushButton") self.horizontalLayout.addWidget(self.add_pushButton) self.verticalLayout_2.addLayout(self.horizontalLayout) self.selectAffected_pushButton = QtWidgets.QPushButton(self.groupBox_4) self.selectAffected_pushButton.setObjectName( "selectAffected_pushButton") self.verticalLayout_2.addWidget(self.selectAffected_pushButton) self.gridLayout_4.addLayout(self.verticalLayout_2, 0, 1, 1, 1) self.gridLayout.addWidget(self.groupBox_4, 1, 1, 1, 1) self.groupBox = QtWidgets.QGroupBox(self.groupBox_2) self.groupBox.setObjectName("groupBox") self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_3.setObjectName("gridLayout_3") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.editPivot_pushButton = QtWidgets.QPushButton(self.groupBox) self.editPivot_pushButton.setObjectName("editPivot_pushButton") self.verticalLayout.addWidget(self.editPivot_pushButton) self.setPivot_pushButton = QtWidgets.QPushButton(self.groupBox) self.setPivot_pushButton.setObjectName("setPivot_pushButton") self.verticalLayout.addWidget(self.setPivot_pushButton) self.reParentPivot_pushButton = QtWidgets.QPushButton(self.groupBox) self.reParentPivot_pushButton.setObjectName("reParentPivot_pushButton") self.verticalLayout.addWidget(self.reParentPivot_pushButton) self.gridLayout_3.addLayout(self.verticalLayout, 0, 0, 1, 1) self.gridLayout.addWidget(self.groupBox, 1, 0, 1, 1) self.gridLayout_6.addWidget(self.groupBox_2, 2, 0, 1, 1) self.groupBox_5 = QtWidgets.QGroupBox(self.rig_tab) self.groupBox_5.setObjectName("groupBox_5") self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_5) self.gridLayout_5.setObjectName("gridLayout_5") self.formLayout = QtWidgets.QFormLayout() self.formLayout.setObjectName("formLayout") self.suffix_label = QtWidgets.QLabel(self.groupBox_5) self.suffix_label.setObjectName("suffix_label") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.suffix_label) self.autoBuild_lineEdit = QtWidgets.QLineEdit(self.groupBox_5) self.autoBuild_lineEdit.setObjectName("autoBuild_lineEdit") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.autoBuild_lineEdit) self.gridLayout_5.addLayout(self.formLayout, 0, 0, 1, 1) self.autoRig_pushButton = QtWidgets.QPushButton(self.groupBox_5) self.autoRig_pushButton.setObjectName("autoRig_pushButton") self.gridLayout_5.addWidget(self.autoRig_pushButton, 1, 0, 1, 1) self.gridLayout_6.addWidget(self.groupBox_5, 3, 0, 1, 1) spacerItem = QtWidgets.QSpacerItem(17, 31, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_6.addItem(spacerItem, 4, 0, 1, 1) self.tabWidget.addTab(self.rig_tab, "") self.extraConfig_tab = QtWidgets.QWidget() self.extraConfig_tab.setObjectName("extraConfig_tab") self.gridLayout_9 = QtWidgets.QGridLayout(self.extraConfig_tab) self.gridLayout_9.setObjectName("gridLayout_9") self.groupBox_6 = QtWidgets.QGroupBox(self.extraConfig_tab) self.groupBox_6.setObjectName("groupBox_6") self.formLayout_3 = QtWidgets.QFormLayout(self.groupBox_6) self.formLayout_3.setObjectName("formLayout_3") self.rootName_label = QtWidgets.QLabel(self.groupBox_6) self.rootName_label.setObjectName("rootName_label") self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.rootName_label) self.rootName_lineEdit = QtWidgets.QLineEdit(self.groupBox_6) self.rootName_lineEdit.setObjectName("rootName_lineEdit") self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.rootName_lineEdit) self.gridLayout_9.addWidget(self.groupBox_6, 0, 0, 1, 1) self.groupBox_8 = QtWidgets.QGroupBox(self.extraConfig_tab) self.groupBox_8.setObjectName("groupBox_8") self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_8) self.gridLayout_8.setObjectName("gridLayout_8") self.fixSize_checkBox = QtWidgets.QCheckBox(self.groupBox_8) self.fixSize_checkBox.setObjectName("fixSize_checkBox") self.gridLayout_8.addWidget(self.fixSize_checkBox, 1, 0, 1, 1) self.worldCenter_checkBox = QtWidgets.QCheckBox(self.groupBox_8) self.worldCenter_checkBox.setChecked(True) self.worldCenter_checkBox.setTristate(False) self.worldCenter_checkBox.setObjectName("worldCenter_checkBox") self.gridLayout_8.addWidget(self.worldCenter_checkBox, 0, 0, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_5 = QtWidgets.QLabel(self.groupBox_8) self.label_5.setObjectName("label_5") self.horizontalLayout_2.addWidget(self.label_5) self.mainCtlShape_comboBox = QtWidgets.QComboBox(self.groupBox_8) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mainCtlShape_comboBox.sizePolicy().hasHeightForWidth()) self.mainCtlShape_comboBox.setSizePolicy(sizePolicy) self.mainCtlShape_comboBox.setObjectName("mainCtlShape_comboBox") self.mainCtlShape_comboBox.addItem("") self.mainCtlShape_comboBox.addItem("") self.horizontalLayout_2.addWidget(self.mainCtlShape_comboBox) self.gridLayout_8.addLayout(self.horizontalLayout_2, 3, 0, 1, 1) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_4 = QtWidgets.QLabel(self.groupBox_8) self.label_4.setObjectName("label_4") self.horizontalLayout_3.addWidget(self.label_4) self.fixSize_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.groupBox_8) self.fixSize_doubleSpinBox.setMaximum(9999.99) self.fixSize_doubleSpinBox.setSingleStep(10.0) self.fixSize_doubleSpinBox.setProperty("value", 100.0) self.fixSize_doubleSpinBox.setObjectName("fixSize_doubleSpinBox") self.horizontalLayout_3.addWidget(self.fixSize_doubleSpinBox) self.gridLayout_8.addLayout(self.horizontalLayout_3, 2, 0, 1, 1) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_6 = QtWidgets.QLabel(self.groupBox_8) self.label_6.setObjectName("label_6") self.horizontalLayout_4.addWidget(self.label_6) self.worldCtlShape_comboBox = QtWidgets.QComboBox(self.groupBox_8) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.worldCtlShape_comboBox.sizePolicy().hasHeightForWidth()) self.worldCtlShape_comboBox.setSizePolicy(sizePolicy) self.worldCtlShape_comboBox.setObjectName("worldCtlShape_comboBox") self.worldCtlShape_comboBox.addItem("") self.worldCtlShape_comboBox.addItem("") self.horizontalLayout_4.addWidget(self.worldCtlShape_comboBox) self.gridLayout_8.addLayout(self.horizontalLayout_4, 6, 0, 1, 1) self.worldCtl_checkBox = QtWidgets.QCheckBox(self.groupBox_8) self.worldCtl_checkBox.setChecked(True) self.worldCtl_checkBox.setObjectName("worldCtl_checkBox") self.gridLayout_8.addWidget(self.worldCtl_checkBox, 5, 0, 1, 1) self.line = QtWidgets.QFrame(self.groupBox_8) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.gridLayout_8.addWidget(self.line, 4, 0, 1, 1) self.gridLayout_9.addWidget(self.groupBox_8, 1, 0, 1, 1) self.groupBox_7 = QtWidgets.QGroupBox(self.extraConfig_tab) self.groupBox_7.setObjectName("groupBox_7") self.formLayout_4 = QtWidgets.QFormLayout(self.groupBox_7) self.formLayout_4.setObjectName("formLayout_4") self.extraSets_label = QtWidgets.QLabel(self.groupBox_7) self.extraSets_label.setObjectName("extraSets_label") self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.extraSets_label) self.extraSets_lineEdit = QtWidgets.QLineEdit(self.groupBox_7) self.extraSets_lineEdit.setObjectName("extraSets_lineEdit") self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.extraSets_lineEdit) self.gridLayout_9.addWidget(self.groupBox_7, 2, 0, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_9.addItem(spacerItem1, 3, 0, 1, 1) self.tabWidget.addTab(self.extraConfig_tab, "") self.gridLayout_7.addWidget(self.tabWidget, 0, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 359, 21)) self.menubar.setObjectName("menubar") self.menuIO = QtWidgets.QMenu(self.menubar) self.menuIO.setObjectName("menuIO") self.menuConvert = QtWidgets.QMenu(self.menubar) self.menuConvert.setObjectName("menuConvert") self.menuDelete = QtWidgets.QMenu(self.menubar) self.menuDelete.setObjectName("menuDelete") self.menuAuto = QtWidgets.QMenu(self.menubar) self.menuAuto.setObjectName("menuAuto") MainWindow.setMenuBar(self.menubar) self.export_action = QtWidgets.QAction(MainWindow) self.export_action.setObjectName("export_action") self.import_action = QtWidgets.QAction(MainWindow) self.import_action.setObjectName("import_action") self.convertToShifterRig_action = QtWidgets.QAction(MainWindow) self.convertToShifterRig_action.setObjectName( "convertToShifterRig_action") self.createShifterGuide_action = QtWidgets.QAction(MainWindow) self.createShifterGuide_action.setObjectName( "createShifterGuide_action") self.deleteRig_action = QtWidgets.QAction(MainWindow) self.deleteRig_action.setObjectName("deleteRig_action") self.deletePivot_action = QtWidgets.QAction(MainWindow) self.deletePivot_action.setObjectName("deletePivot_action") self.autoBuild_action = QtWidgets.QAction(MainWindow) self.autoBuild_action.setObjectName("autoBuild_action") self.menuIO.addAction(self.export_action) self.menuIO.addAction(self.import_action) self.menuIO.addSeparator() self.menuConvert.addAction(self.convertToShifterRig_action) self.menuConvert.addAction(self.createShifterGuide_action) self.menuDelete.addAction(self.deletePivot_action) self.menuDelete.addSeparator() self.menuDelete.addAction(self.deleteRig_action) self.menuAuto.addAction(self.autoBuild_action) self.menubar.addAction(self.menuIO.menuAction()) self.menubar.addAction(self.menuConvert.menuAction()) self.menubar.addAction(self.menuDelete.menuAction()) self.menubar.addAction(self.menuAuto.menuAction()) self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.setEnabled(True) MainWindow.resize(503, 765) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.gridLayout = QtWidgets.QGridLayout(self.centralwidget) self.gridLayout.setObjectName("gridLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.label = QtWidgets.QLabel(self.centralwidget) self.label.setObjectName("label") self.verticalLayout.addWidget(self.label) self.search_lineEdit = QtWidgets.QLineEdit(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.search_lineEdit.sizePolicy().hasHeightForWidth()) self.search_lineEdit.setSizePolicy(sizePolicy) self.search_lineEdit.setObjectName("search_lineEdit") self.verticalLayout.addWidget(self.search_lineEdit) self.softTweak_listView = QtWidgets.QListView(self.centralwidget) self.softTweak_listView.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.softTweak_listView.sizePolicy().hasHeightForWidth()) self.softTweak_listView.setSizePolicy(sizePolicy) self.softTweak_listView.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) self.softTweak_listView.setAlternatingRowColors(True) self.softTweak_listView.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection) self.softTweak_listView.setObjectName("softTweak_listView") self.verticalLayout.addWidget(self.softTweak_listView) self.refresh_pushButton = QtWidgets.QPushButton(self.centralwidget) self.refresh_pushButton.setObjectName("refresh_pushButton") self.verticalLayout.addWidget(self.refresh_pushButton) self.horizontalLayout.addLayout(self.verticalLayout) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.groupBox_5 = QtWidgets.QGroupBox(self.centralwidget) self.groupBox_5.setObjectName("groupBox_5") self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_5) self.gridLayout_5.setObjectName("gridLayout_5") self.auto_pushButton = QtWidgets.QPushButton(self.groupBox_5) self.auto_pushButton.setMinimumSize(QtCore.QSize(0, 40)) self.auto_pushButton.setObjectName("auto_pushButton") self.gridLayout_5.addWidget(self.auto_pushButton, 0, 0, 1, 1) self.verticalLayout_2.addWidget(self.groupBox_5) self.groupBox = QtWidgets.QGroupBox(self.centralwidget) self.groupBox.setObjectName("groupBox") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout_3.setObjectName("verticalLayout_3") self.formLayout = QtWidgets.QFormLayout() self.formLayout.setObjectName("formLayout") self.name_label = QtWidgets.QLabel(self.groupBox) self.name_label.setObjectName("name_label") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.name_label) self.name_lineEdit = QtWidgets.QLineEdit(self.groupBox) self.name_lineEdit.setObjectName("name_lineEdit") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.name_lineEdit) self.ctlGrp_label = QtWidgets.QLabel(self.groupBox) self.ctlGrp_label.setObjectName("ctlGrp_label") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.ctlGrp_label) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.ctlGrp_lineEdit = QtWidgets.QLineEdit(self.groupBox) self.ctlGrp_lineEdit.setObjectName("ctlGrp_lineEdit") self.horizontalLayout_2.addWidget(self.ctlGrp_lineEdit) self.setCtrlGrp_pushButton = QtWidgets.QPushButton(self.groupBox) self.setCtrlGrp_pushButton.setEnabled(True) self.setCtrlGrp_pushButton.setObjectName("setCtrlGrp_pushButton") self.horizontalLayout_2.addWidget(self.setCtrlGrp_pushButton) self.formLayout.setLayout(1, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2) self.parent_label = QtWidgets.QLabel(self.groupBox) self.parent_label.setObjectName("parent_label") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.parent_label) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.parent_lineEdit = QtWidgets.QLineEdit(self.groupBox) self.parent_lineEdit.setObjectName("parent_lineEdit") self.horizontalLayout_3.addWidget(self.parent_lineEdit) self.setParent_pushButton = QtWidgets.QPushButton(self.groupBox) self.setParent_pushButton.setObjectName("setParent_pushButton") self.horizontalLayout_3.addWidget(self.setParent_pushButton) self.formLayout.setLayout(2, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_3) self.size_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.groupBox) self.size_doubleSpinBox.setDecimals(3) self.size_doubleSpinBox.setMaximum(999.99) self.size_doubleSpinBox.setSingleStep(0.1) self.size_doubleSpinBox.setProperty("value", 1.0) self.size_doubleSpinBox.setObjectName("size_doubleSpinBox") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.size_doubleSpinBox) self.size_label = QtWidgets.QLabel(self.groupBox) self.size_label.setObjectName("size_label") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.size_label) self.verticalLayout_3.addLayout(self.formLayout) self.newTweak_pushButton = QtWidgets.QPushButton(self.groupBox) self.newTweak_pushButton.setObjectName("newTweak_pushButton") self.verticalLayout_3.addWidget(self.newTweak_pushButton) self.verticalLayout_2.addWidget(self.groupBox) self.groupBox_2 = QtWidgets.QGroupBox(self.centralwidget) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_2.setObjectName("gridLayout_2") self.delete_pushButton = QtWidgets.QPushButton(self.groupBox_2) self.delete_pushButton.setObjectName("delete_pushButton") self.gridLayout_2.addWidget(self.delete_pushButton, 0, 0, 1, 1) self.verticalLayout_2.addWidget(self.groupBox_2) self.groupBox_3 = QtWidgets.QGroupBox(self.centralwidget) self.groupBox_3.setObjectName("groupBox_3") self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_3) self.gridLayout_3.setObjectName("gridLayout_3") self.addObjectToTweak_pushButton = QtWidgets.QPushButton(self.groupBox_3) self.addObjectToTweak_pushButton.setObjectName("addObjectToTweak_pushButton") self.gridLayout_3.addWidget(self.addObjectToTweak_pushButton, 1, 0, 1, 1) self.removeObjFromTweak_pushButton = QtWidgets.QPushButton(self.groupBox_3) self.removeObjFromTweak_pushButton.setObjectName("removeObjFromTweak_pushButton") self.gridLayout_3.addWidget(self.removeObjFromTweak_pushButton, 2, 0, 1, 1) self.verticalLayout_2.addWidget(self.groupBox_3) self.groupBox_4 = QtWidgets.QGroupBox(self.centralwidget) self.groupBox_4.setObjectName("groupBox_4") self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_4) self.gridLayout_4.setObjectName("gridLayout_4") self.selectCtlBase_pushButton = QtWidgets.QPushButton(self.groupBox_4) self.selectCtlBase_pushButton.setObjectName("selectCtlBase_pushButton") self.gridLayout_4.addWidget(self.selectCtlBase_pushButton, 1, 0, 1, 1) self.selectCtl_pushButton = QtWidgets.QPushButton(self.groupBox_4) self.selectCtl_pushButton.setObjectName("selectCtl_pushButton") self.gridLayout_4.addWidget(self.selectCtl_pushButton, 0, 0, 1, 1) self.selectObjectsFromTweak_pushButton = QtWidgets.QPushButton(self.groupBox_4) self.selectObjectsFromTweak_pushButton.setObjectName("selectObjectsFromTweak_pushButton") self.gridLayout_4.addWidget(self.selectObjectsFromTweak_pushButton, 2, 0, 1, 1) self.verticalLayout_2.addWidget(self.groupBox_4) self.groupBox_6 = QtWidgets.QGroupBox(self.centralwidget) self.groupBox_6.setObjectName("groupBox_6") self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.groupBox_6) self.verticalLayout_5.setObjectName("verticalLayout_5") self.isAsset_checkBox = QtWidgets.QCheckBox(self.groupBox_6) self.isAsset_checkBox.setStatusTip("") self.isAsset_checkBox.setObjectName("isAsset_checkBox") self.verticalLayout_5.addWidget(self.isAsset_checkBox) self.customExt_checkBox = QtWidgets.QCheckBox(self.groupBox_6) self.customExt_checkBox.setObjectName("customExt_checkBox") self.verticalLayout_5.addWidget(self.customExt_checkBox) self.customExt_lineEdit = QtWidgets.QLineEdit(self.groupBox_6) self.customExt_lineEdit.setEnabled(False) self.customExt_lineEdit.setObjectName("customExt_lineEdit") self.verticalLayout_5.addWidget(self.customExt_lineEdit) self.verticalLayout_2.addWidget(self.groupBox_6) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem) self.horizontalLayout.addLayout(self.verticalLayout_2) self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 503, 21)) self.menubar.setObjectName("menubar") self.menuFile = QtWidgets.QMenu(self.menubar) self.menuFile.setTearOffEnabled(True) self.menuFile.setObjectName("menuFile") MainWindow.setMenuBar(self.menubar) self.exportSelected_action = QtWidgets.QAction(MainWindow) self.exportSelected_action.setObjectName("exportSelected_action") self.actionExport_Selected = QtWidgets.QAction(MainWindow) self.actionExport_Selected.setObjectName("actionExport_Selected") self.import_action = QtWidgets.QAction(MainWindow) self.import_action.setObjectName("import_action") self.actionAbout = QtWidgets.QAction(MainWindow) self.actionAbout.setObjectName("actionAbout") self.exportAll_action = QtWidgets.QAction(MainWindow) self.exportAll_action.setObjectName("exportAll_action") self.menuFile.addAction(self.exportSelected_action) self.menuFile.addAction(self.exportAll_action) self.menuFile.addSeparator() self.menuFile.addAction(self.import_action) self.menubar.addAction(self.menuFile.menuAction()) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def create_controls(self): # Geometry input controls self.geometryInput_group = QtWidgets.QGroupBox("Geometry Input") self.edgedge_loop_label = QtWidgets.QLabel("Edge Loop:") self.edge_loop = QtWidgets.QLineEdit() self.edge_loop_button = QtWidgets.QPushButton("<<") self.up_vertex_label = QtWidgets.QLabel("Upper Vertex:") self.up_vertex = QtWidgets.QLineEdit() self.up_vertex_button = QtWidgets.QPushButton("<<") self.low_vertex_label = QtWidgets.QLabel("Lower Vertex:") self.low_vertex = QtWidgets.QLineEdit() self.low_vertex_button = QtWidgets.QPushButton("<<") # Name prefix self.prefix_group = QtWidgets.QGroupBox("Name Prefix") self.name_prefix = QtWidgets.QLineEdit() self.name_prefix.setText("lips") # control extension self.control_group = QtWidgets.QGroupBox("Control Name Extension") self.control_name = QtWidgets.QLineEdit() self.control_name.setText("ctl") # joints self.joints_group = QtWidgets.QGroupBox("Joints") self.head_joint_label = QtWidgets.QLabel("Head or Upper Lip Joint:") self.head_joint = QtWidgets.QLineEdit() self.head_joint_button = QtWidgets.QPushButton("<<") self.jaw_joint_label = QtWidgets.QLabel("Jaw or Lower Lip Joint:") self.jaw_joint = QtWidgets.QLineEdit() self.jaw_joint_button = QtWidgets.QPushButton("<<") # Lips Controls self.control_ref_group = QtWidgets.QGroupBox( "Lips Base Controls (Optional. Required for Shifter Game tools)") self.upper_lip_ctl_label = QtWidgets.QLabel("Upper Lip Control:") self.upper_lip_ctl = QtWidgets.QLineEdit() self.upper_lip_ctl_button = QtWidgets.QPushButton("<<") self.lower_lip_ctl_label = QtWidgets.QLabel("Lower Lip Control:") self.lower_lip_ctl = QtWidgets.QLineEdit() self.lower_lip_ctl_button = QtWidgets.QPushButton("<<") # Topological Autoskin self.topoSkin_group = QtWidgets.QGroupBox("Skin") self.rigid_loops_label = QtWidgets.QLabel("Rigid Loops:") self.rigid_loops = QtWidgets.QSpinBox() self.rigid_loops.setRange(0, 30) self.rigid_loops.setSingleStep(1) self.rigid_loops.setValue(5) self.falloff_loops_label = QtWidgets.QLabel("Falloff Loops:") self.falloff_loops = QtWidgets.QSpinBox() self.falloff_loops.setRange(0, 30) self.falloff_loops.setSingleStep(1) self.falloff_loops.setValue(8) self.do_skin = QtWidgets.QCheckBox( 'Compute Topological Autoskin') self.do_skin.setChecked(True) # Options self.options_group = QtWidgets.QGroupBox("Options") self.thickness_label = QtWidgets.QLabel("Lips Thickness:") self.thickness = QtWidgets.QDoubleSpinBox() self.thickness.setRange(0, 10) self.thickness.setSingleStep(.01) self.thickness.setValue(.03) self.parent_label = QtWidgets.QLabel("Static Rig Parent:") self.parent_node = QtWidgets.QLineEdit() self.parent_button = QtWidgets.QPushButton("<<") # Build button self.build_button = QtWidgets.QPushButton("Build Lips Rig") self.import_button = QtWidgets.QPushButton("Import Config from json") self.export_button = QtWidgets.QPushButton("Export Config to json")
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(459, 809) self.gridLayout_2 = QtWidgets.QGridLayout(Form) self.gridLayout_2.setObjectName("gridLayout_2") self.groupBox_5 = QtWidgets.QGroupBox(Form) self.groupBox_5.setObjectName("groupBox_5") self.gridLayout_7 = QtWidgets.QGridLayout(self.groupBox_5) self.gridLayout_7.setObjectName("gridLayout_7") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label = QtWidgets.QLabel(self.groupBox_5) self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtWidgets.QLabel(self.groupBox_5) self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 0, 1, 1, 1) self.label_3 = QtWidgets.QLabel(self.groupBox_5) self.label_3.setAlignment(QtCore.Qt.AlignCenter) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 0, 2, 1, 1) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.L_color_fk_label = QtWidgets.QLabel(self.groupBox_5) self.L_color_fk_label.setObjectName("L_color_fk_label") self.horizontalLayout_3.addWidget(self.L_color_fk_label) self.L_color_fk_spinBox = QtWidgets.QSpinBox(self.groupBox_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.L_color_fk_spinBox.sizePolicy().hasHeightForWidth()) self.L_color_fk_spinBox.setSizePolicy(sizePolicy) self.L_color_fk_spinBox.setMaximum(31) self.L_color_fk_spinBox.setObjectName("L_color_fk_spinBox") self.horizontalLayout_3.addWidget(self.L_color_fk_spinBox) self.gridLayout.addLayout(self.horizontalLayout_3, 1, 0, 1, 1) self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.L_color_fk_label_5 = QtWidgets.QLabel(self.groupBox_5) self.L_color_fk_label_5.setObjectName("L_color_fk_label_5") self.horizontalLayout_7.addWidget(self.L_color_fk_label_5) self.C_color_fk_spinBox = QtWidgets.QSpinBox(self.groupBox_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.C_color_fk_spinBox.sizePolicy().hasHeightForWidth()) self.C_color_fk_spinBox.setSizePolicy(sizePolicy) self.C_color_fk_spinBox.setMaximum(31) self.C_color_fk_spinBox.setObjectName("C_color_fk_spinBox") self.horizontalLayout_7.addWidget(self.C_color_fk_spinBox) self.gridLayout.addLayout(self.horizontalLayout_7, 1, 1, 1, 1) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.L_color_fk_label_3 = QtWidgets.QLabel(self.groupBox_5) self.L_color_fk_label_3.setObjectName("L_color_fk_label_3") self.horizontalLayout_5.addWidget(self.L_color_fk_label_3) self.R_color_fk_spinBox = QtWidgets.QSpinBox(self.groupBox_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.R_color_fk_spinBox.sizePolicy().hasHeightForWidth()) self.R_color_fk_spinBox.setSizePolicy(sizePolicy) self.R_color_fk_spinBox.setMaximum(31) self.R_color_fk_spinBox.setObjectName("R_color_fk_spinBox") self.horizontalLayout_5.addWidget(self.R_color_fk_spinBox) self.gridLayout.addLayout(self.horizontalLayout_5, 1, 2, 1, 1) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.L_color_fk_label_2 = QtWidgets.QLabel(self.groupBox_5) self.L_color_fk_label_2.setObjectName("L_color_fk_label_2") self.horizontalLayout_4.addWidget(self.L_color_fk_label_2) self.L_color_ik_spinBox = QtWidgets.QSpinBox(self.groupBox_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.L_color_ik_spinBox.sizePolicy().hasHeightForWidth()) self.L_color_ik_spinBox.setSizePolicy(sizePolicy) self.L_color_ik_spinBox.setMaximum(31) self.L_color_ik_spinBox.setObjectName("L_color_ik_spinBox") self.horizontalLayout_4.addWidget(self.L_color_ik_spinBox) self.gridLayout.addLayout(self.horizontalLayout_4, 2, 0, 1, 1) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.L_color_fk_label_6 = QtWidgets.QLabel(self.groupBox_5) self.L_color_fk_label_6.setObjectName("L_color_fk_label_6") self.horizontalLayout_8.addWidget(self.L_color_fk_label_6) self.C_color_ik_spinBox = QtWidgets.QSpinBox(self.groupBox_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.C_color_ik_spinBox.sizePolicy().hasHeightForWidth()) self.C_color_ik_spinBox.setSizePolicy(sizePolicy) self.C_color_ik_spinBox.setMaximum(31) self.C_color_ik_spinBox.setObjectName("C_color_ik_spinBox") self.horizontalLayout_8.addWidget(self.C_color_ik_spinBox) self.gridLayout.addLayout(self.horizontalLayout_8, 2, 1, 1, 1) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.L_color_fk_label_4 = QtWidgets.QLabel(self.groupBox_5) self.L_color_fk_label_4.setObjectName("L_color_fk_label_4") self.horizontalLayout_6.addWidget(self.L_color_fk_label_4) self.R_color_ik_spinBox = QtWidgets.QSpinBox(self.groupBox_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.R_color_ik_spinBox.sizePolicy().hasHeightForWidth()) self.R_color_ik_spinBox.setSizePolicy(sizePolicy) self.R_color_ik_spinBox.setMaximum(31) self.R_color_ik_spinBox.setObjectName("R_color_ik_spinBox") self.horizontalLayout_6.addWidget(self.R_color_ik_spinBox) self.gridLayout.addLayout(self.horizontalLayout_6, 2, 2, 1, 1) self.gridLayout_7.addLayout(self.gridLayout, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.groupBox_5, 6, 0, 1, 1) self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setObjectName("groupBox") self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_3.setObjectName("gridLayout_3") self.formLayout = QtWidgets.QFormLayout() self.formLayout.setObjectName("formLayout") self.rigName_label = QtWidgets.QLabel(self.groupBox) self.rigName_label.setObjectName("rigName_label") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.rigName_label) self.rigName_lineEdit = QtWidgets.QLineEdit(self.groupBox) self.rigName_lineEdit.setObjectName("rigName_lineEdit") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.rigName_lineEdit) self.mode_label = QtWidgets.QLabel(self.groupBox) self.mode_label.setObjectName("mode_label") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.mode_label) self.mode_comboBox = QtWidgets.QComboBox(self.groupBox) self.mode_comboBox.setObjectName("mode_comboBox") self.mode_comboBox.addItem("") self.mode_comboBox.addItem("") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.mode_comboBox) self.step_label = QtWidgets.QLabel(self.groupBox) self.step_label.setObjectName("step_label") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.step_label) self.step_comboBox = QtWidgets.QComboBox(self.groupBox) self.step_comboBox.setObjectName("step_comboBox") self.step_comboBox.addItem("") self.step_comboBox.addItem("") self.step_comboBox.addItem("") self.step_comboBox.addItem("") self.step_comboBox.addItem("") self.step_comboBox.addItem("") self.step_comboBox.addItem("") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.step_comboBox) self.gridLayout_3.addLayout(self.formLayout, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.groupBox, 0, 0, 1, 1) self.groupBox_2 = QtWidgets.QGroupBox(Form) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_4.setObjectName("gridLayout_4") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.importSkin_checkBox = QtWidgets.QCheckBox(self.groupBox_2) self.importSkin_checkBox.setObjectName("importSkin_checkBox") self.verticalLayout.addWidget(self.importSkin_checkBox) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.skin_label = QtWidgets.QLabel(self.groupBox_2) self.skin_label.setObjectName("skin_label") self.horizontalLayout.addWidget(self.skin_label) self.skin_lineEdit = QtWidgets.QLineEdit(self.groupBox_2) self.skin_lineEdit.setObjectName("skin_lineEdit") self.horizontalLayout.addWidget(self.skin_lineEdit) self.loadSkinPath_pushButton = QtWidgets.QPushButton(self.groupBox_2) self.loadSkinPath_pushButton.setObjectName("loadSkinPath_pushButton") self.horizontalLayout.addWidget(self.loadSkinPath_pushButton) self.verticalLayout.addLayout(self.horizontalLayout) self.gridLayout_4.addLayout(self.verticalLayout, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.groupBox_2, 3, 0, 1, 1) self.groupBox_4 = QtWidgets.QGroupBox(Form) self.groupBox_4.setObjectName("groupBox_4") self.gridLayout_6 = QtWidgets.QGridLayout(self.groupBox_4) self.gridLayout_6.setObjectName("gridLayout_6") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.rigTabs_label = QtWidgets.QLabel(self.groupBox_4) self.rigTabs_label.setObjectName("rigTabs_label") self.verticalLayout_3.addWidget(self.rigTabs_label) self.rigTabs_listWidget = QtWidgets.QListWidget(self.groupBox_4) self.rigTabs_listWidget.setDragDropOverwriteMode(True) self.rigTabs_listWidget.setDragDropMode( QtWidgets.QAbstractItemView.InternalMove) self.rigTabs_listWidget.setDefaultDropAction(QtCore.Qt.MoveAction) self.rigTabs_listWidget.setAlternatingRowColors(True) self.rigTabs_listWidget.setSelectionMode( QtWidgets.QAbstractItemView.ExtendedSelection) self.rigTabs_listWidget.setSelectionRectVisible(False) self.rigTabs_listWidget.setObjectName("rigTabs_listWidget") self.verticalLayout_3.addWidget(self.rigTabs_listWidget) self.horizontalLayout_2.addLayout(self.verticalLayout_3) self.verticalLayout_4 = QtWidgets.QVBoxLayout() self.verticalLayout_4.setSizeConstraint( QtWidgets.QLayout.SetDefaultConstraint) self.verticalLayout_4.setObjectName("verticalLayout_4") spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_4.addItem(spacerItem) self.addTab_pushButton = QtWidgets.QPushButton(self.groupBox_4) self.addTab_pushButton.setObjectName("addTab_pushButton") self.verticalLayout_4.addWidget(self.addTab_pushButton) self.removeTab_pushButton = QtWidgets.QPushButton(self.groupBox_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.removeTab_pushButton.sizePolicy().hasHeightForWidth()) self.removeTab_pushButton.setSizePolicy(sizePolicy) self.removeTab_pushButton.setObjectName("removeTab_pushButton") self.verticalLayout_4.addWidget(self.removeTab_pushButton) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_4.addItem(spacerItem1) self.horizontalLayout_2.addLayout(self.verticalLayout_4) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.available_label = QtWidgets.QLabel(self.groupBox_4) self.available_label.setObjectName("available_label") self.verticalLayout_2.addWidget(self.available_label) self.available_listWidget = QtWidgets.QListWidget(self.groupBox_4) self.available_listWidget.setDragDropOverwriteMode(True) self.available_listWidget.setDragDropMode( QtWidgets.QAbstractItemView.NoDragDrop) self.available_listWidget.setDefaultDropAction(QtCore.Qt.IgnoreAction) self.available_listWidget.setAlternatingRowColors(True) self.available_listWidget.setSelectionMode( QtWidgets.QAbstractItemView.ExtendedSelection) self.available_listWidget.setSelectionRectVisible(False) self.available_listWidget.setObjectName("available_listWidget") self.verticalLayout_2.addWidget(self.available_listWidget) self.horizontalLayout_2.addLayout(self.verticalLayout_2) self.gridLayout_6.addLayout(self.horizontalLayout_2, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.groupBox_4, 5, 0, 1, 1) self.groupBox_3 = QtWidgets.QGroupBox(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox_3.sizePolicy().hasHeightForWidth()) self.groupBox_3.setSizePolicy(sizePolicy) self.groupBox_3.setObjectName("groupBox_3") self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_3) self.gridLayout_5.setObjectName("gridLayout_5") self.jointRig_checkBox = QtWidgets.QCheckBox(self.groupBox_3) self.jointRig_checkBox.setObjectName("jointRig_checkBox") self.gridLayout_5.addWidget(self.jointRig_checkBox, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.groupBox_3, 4, 0, 1, 1) self.groupBox_6 = QtWidgets.QGroupBox(Form) self.groupBox_6.setObjectName("groupBox_6") self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_6) self.gridLayout_8.setObjectName("gridLayout_8") self.proxyChannels_checkBox = QtWidgets.QCheckBox(self.groupBox_6) self.proxyChannels_checkBox.setObjectName("proxyChannels_checkBox") self.gridLayout_8.addWidget(self.proxyChannels_checkBox, 0, 0, 1, 1) self.classicChannelNames_checkBox = QtWidgets.QCheckBox( self.groupBox_6) self.classicChannelNames_checkBox.setObjectName( "classicChannelNames_checkBox") self.gridLayout_8.addWidget(self.classicChannelNames_checkBox, 1, 0, 1, 1) self.gridLayout_2.addWidget(self.groupBox_6, 1, 0, 1, 1) self.groupBox_7 = QtWidgets.QGroupBox(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox_7.sizePolicy().hasHeightForWidth()) self.groupBox_7.setSizePolicy(sizePolicy) self.groupBox_7.setObjectName("groupBox_7") self.gridLayout_9 = QtWidgets.QGridLayout(self.groupBox_7) self.gridLayout_9.setObjectName("gridLayout_9") self.worldCtl_checkBox = QtWidgets.QCheckBox(self.groupBox_7) self.worldCtl_checkBox.setObjectName("worldCtl_checkBox") self.gridLayout_9.addWidget(self.worldCtl_checkBox, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.groupBox_7, 2, 0, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(312, 655) self.gridLayout = QtWidgets.QGridLayout(Form) self.gridLayout.setObjectName("gridLayout") self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setObjectName("groupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.preCustomStep_checkBox = QtWidgets.QCheckBox(self.groupBox) self.preCustomStep_checkBox.setObjectName("preCustomStep_checkBox") self.verticalLayout.addWidget(self.preCustomStep_checkBox) self.preSearch_lineEdit = QtWidgets.QLineEdit(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.preSearch_lineEdit.sizePolicy().hasHeightForWidth()) self.preSearch_lineEdit.setSizePolicy(sizePolicy) self.preSearch_lineEdit.setObjectName("preSearch_lineEdit") self.verticalLayout.addWidget(self.preSearch_lineEdit) self.preCustomStep_horizontalLayout = QtWidgets.QHBoxLayout() self.preCustomStep_horizontalLayout.setObjectName("preCustomStep_horizontalLayout") self.preCustomStep_verticalLayout_1 = QtWidgets.QVBoxLayout() self.preCustomStep_verticalLayout_1.setObjectName("preCustomStep_verticalLayout_1") self.preCustomStep_listWidget = QtWidgets.QListWidget(self.groupBox) self.preCustomStep_listWidget.setDragDropOverwriteMode(True) self.preCustomStep_listWidget.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove) self.preCustomStep_listWidget.setDefaultDropAction(QtCore.Qt.MoveAction) self.preCustomStep_listWidget.setAlternatingRowColors(True) self.preCustomStep_listWidget.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection) self.preCustomStep_listWidget.setProperty("isWrapping", False) self.preCustomStep_listWidget.setViewMode(QtWidgets.QListView.ListMode) self.preCustomStep_listWidget.setObjectName("preCustomStep_listWidget") self.preCustomStep_verticalLayout_1.addWidget(self.preCustomStep_listWidget) self.preCustomStep_horizontalLayout.addLayout(self.preCustomStep_verticalLayout_1) self.preCustomStep_verticalLayout_2 = QtWidgets.QVBoxLayout() self.preCustomStep_verticalLayout_2.setObjectName("preCustomStep_verticalLayout_2") self.preCustomStepAdd_pushButton = QtWidgets.QPushButton(self.groupBox) self.preCustomStepAdd_pushButton.setObjectName("preCustomStepAdd_pushButton") self.preCustomStep_verticalLayout_2.addWidget(self.preCustomStepAdd_pushButton) self.preCustomStepNew_pushButton = QtWidgets.QPushButton(self.groupBox) self.preCustomStepNew_pushButton.setObjectName("preCustomStepNew_pushButton") self.preCustomStep_verticalLayout_2.addWidget(self.preCustomStepNew_pushButton) self.preCustomStepDuplicate_pushButton = QtWidgets.QPushButton(self.groupBox) self.preCustomStepDuplicate_pushButton.setObjectName("preCustomStepDuplicate_pushButton") self.preCustomStep_verticalLayout_2.addWidget(self.preCustomStepDuplicate_pushButton) self.preCustomStepRemove_pushButton = QtWidgets.QPushButton(self.groupBox) self.preCustomStepRemove_pushButton.setObjectName("preCustomStepRemove_pushButton") self.preCustomStep_verticalLayout_2.addWidget(self.preCustomStepRemove_pushButton) self.preCustomStepRun_pushButton = QtWidgets.QPushButton(self.groupBox) self.preCustomStepRun_pushButton.setObjectName("preCustomStepRun_pushButton") self.preCustomStep_verticalLayout_2.addWidget(self.preCustomStepRun_pushButton) self.preCustomStepEdit_pushButton = QtWidgets.QPushButton(self.groupBox) self.preCustomStepEdit_pushButton.setObjectName("preCustomStepEdit_pushButton") self.preCustomStep_verticalLayout_2.addWidget(self.preCustomStepEdit_pushButton) self.preCustomStepExport_pushButton = QtWidgets.QPushButton(self.groupBox) self.preCustomStepExport_pushButton.setObjectName("preCustomStepExport_pushButton") self.preCustomStep_verticalLayout_2.addWidget(self.preCustomStepExport_pushButton) self.preCustomStepImport_pushButton = QtWidgets.QPushButton(self.groupBox) self.preCustomStepImport_pushButton.setObjectName("preCustomStepImport_pushButton") self.preCustomStep_verticalLayout_2.addWidget(self.preCustomStepImport_pushButton) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.preCustomStep_verticalLayout_2.addItem(spacerItem) self.preCustomStep_horizontalLayout.addLayout(self.preCustomStep_verticalLayout_2) self.verticalLayout.addLayout(self.preCustomStep_horizontalLayout) self.verticalLayout_3.addLayout(self.verticalLayout) self.line = QtWidgets.QFrame(self.groupBox) self.line.setLineWidth(3) self.line.setMidLineWidth(0) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout_3.addWidget(self.line) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.postCustomStep_checkBox = QtWidgets.QCheckBox(self.groupBox) self.postCustomStep_checkBox.setObjectName("postCustomStep_checkBox") self.verticalLayout_2.addWidget(self.postCustomStep_checkBox) self.postSearch_lineEdit = QtWidgets.QLineEdit(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.postSearch_lineEdit.sizePolicy().hasHeightForWidth()) self.postSearch_lineEdit.setSizePolicy(sizePolicy) self.postSearch_lineEdit.setObjectName("postSearch_lineEdit") self.verticalLayout_2.addWidget(self.postSearch_lineEdit) self.preCustomStep_horizontalLayout_2 = QtWidgets.QHBoxLayout() self.preCustomStep_horizontalLayout_2.setObjectName("preCustomStep_horizontalLayout_2") self.preCustomStep_verticalLayout_3 = QtWidgets.QVBoxLayout() self.preCustomStep_verticalLayout_3.setObjectName("preCustomStep_verticalLayout_3") self.postCustomStep_listWidget = QtWidgets.QListWidget(self.groupBox) self.postCustomStep_listWidget.setDragDropOverwriteMode(True) self.postCustomStep_listWidget.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove) self.postCustomStep_listWidget.setDefaultDropAction(QtCore.Qt.MoveAction) self.postCustomStep_listWidget.setAlternatingRowColors(True) self.postCustomStep_listWidget.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection) self.postCustomStep_listWidget.setViewMode(QtWidgets.QListView.ListMode) self.postCustomStep_listWidget.setWordWrap(False) self.postCustomStep_listWidget.setSelectionRectVisible(False) self.postCustomStep_listWidget.setObjectName("postCustomStep_listWidget") self.preCustomStep_verticalLayout_3.addWidget(self.postCustomStep_listWidget) self.preCustomStep_horizontalLayout_2.addLayout(self.preCustomStep_verticalLayout_3) self.preCustomStep_verticalLayout_4 = QtWidgets.QVBoxLayout() self.preCustomStep_verticalLayout_4.setObjectName("preCustomStep_verticalLayout_4") self.postCustomStepAdd_pushButton = QtWidgets.QPushButton(self.groupBox) self.postCustomStepAdd_pushButton.setObjectName("postCustomStepAdd_pushButton") self.preCustomStep_verticalLayout_4.addWidget(self.postCustomStepAdd_pushButton) self.postCustomStepNew_pushButton = QtWidgets.QPushButton(self.groupBox) self.postCustomStepNew_pushButton.setObjectName("postCustomStepNew_pushButton") self.preCustomStep_verticalLayout_4.addWidget(self.postCustomStepNew_pushButton) self.postCustomStepDuplicate_pushButton = QtWidgets.QPushButton(self.groupBox) self.postCustomStepDuplicate_pushButton.setObjectName("postCustomStepDuplicate_pushButton") self.preCustomStep_verticalLayout_4.addWidget(self.postCustomStepDuplicate_pushButton) self.postCustomStepRemove_pushButton = QtWidgets.QPushButton(self.groupBox) self.postCustomStepRemove_pushButton.setObjectName("postCustomStepRemove_pushButton") self.preCustomStep_verticalLayout_4.addWidget(self.postCustomStepRemove_pushButton) self.postCustomStepRun_pushButton = QtWidgets.QPushButton(self.groupBox) self.postCustomStepRun_pushButton.setObjectName("postCustomStepRun_pushButton") self.preCustomStep_verticalLayout_4.addWidget(self.postCustomStepRun_pushButton) self.postCustomStepEdit_pushButton = QtWidgets.QPushButton(self.groupBox) self.postCustomStepEdit_pushButton.setObjectName("postCustomStepEdit_pushButton") self.preCustomStep_verticalLayout_4.addWidget(self.postCustomStepEdit_pushButton) self.postCustomStepExport_pushButton = QtWidgets.QPushButton(self.groupBox) self.postCustomStepExport_pushButton.setObjectName("postCustomStepExport_pushButton") self.preCustomStep_verticalLayout_4.addWidget(self.postCustomStepExport_pushButton) self.postCustomStepImport_pushButton = QtWidgets.QPushButton(self.groupBox) self.postCustomStepImport_pushButton.setObjectName("postCustomStepImport_pushButton") self.preCustomStep_verticalLayout_4.addWidget(self.postCustomStepImport_pushButton) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.preCustomStep_verticalLayout_4.addItem(spacerItem1) self.preCustomStep_horizontalLayout_2.addLayout(self.preCustomStep_verticalLayout_4) self.verticalLayout_2.addLayout(self.preCustomStep_horizontalLayout_2) self.verticalLayout_3.addLayout(self.verticalLayout_2) self.gridLayout_2.addLayout(self.verticalLayout_3, 0, 0, 1, 1) self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(286, 527) self.gridLayout = QtWidgets.QGridLayout(Form) self.gridLayout.setObjectName("gridLayout") self.mainSettings_groupBox = QtWidgets.QGroupBox(Form) self.mainSettings_groupBox.setTitle("") self.mainSettings_groupBox.setObjectName("mainSettings_groupBox") self.gridLayout_4 = QtWidgets.QGridLayout(self.mainSettings_groupBox) self.gridLayout_4.setObjectName("gridLayout_4") self.formLayout = QtWidgets.QFormLayout() self.formLayout.setObjectName("formLayout") self.name_label = QtWidgets.QLabel(self.mainSettings_groupBox) self.name_label.setObjectName("name_label") self.formLayout.setWidget( 0, QtWidgets.QFormLayout.LabelRole, self.name_label) self.name_lineEdit = QtWidgets.QLineEdit(self.mainSettings_groupBox) self.name_lineEdit.setObjectName("name_lineEdit") self.formLayout.setWidget( 0, QtWidgets.QFormLayout.FieldRole, self.name_lineEdit) self.side_label = QtWidgets.QLabel(self.mainSettings_groupBox) self.side_label.setObjectName("side_label") self.formLayout.setWidget( 1, QtWidgets.QFormLayout.LabelRole, self.side_label) self.side_comboBox = QtWidgets.QComboBox(self.mainSettings_groupBox) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.side_comboBox.sizePolicy().hasHeightForWidth()) self.side_comboBox.setSizePolicy(sizePolicy) self.side_comboBox.setObjectName("side_comboBox") self.side_comboBox.addItem("") self.side_comboBox.addItem("") self.side_comboBox.addItem("") self.formLayout.setWidget( 1, QtWidgets.QFormLayout.FieldRole, self.side_comboBox) self.componentIndex_label = QtWidgets.QLabel( self.mainSettings_groupBox) self.componentIndex_label.setObjectName("componentIndex_label") self.formLayout.setWidget( 2, QtWidgets.QFormLayout.LabelRole, self.componentIndex_label) self.componentIndex_spinBox = QtWidgets.QSpinBox( self.mainSettings_groupBox) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.componentIndex_spinBox.sizePolicy().hasHeightForWidth()) self.componentIndex_spinBox.setSizePolicy(sizePolicy) self.componentIndex_spinBox.setObjectName("componentIndex_spinBox") self.formLayout.setWidget( 2, QtWidgets.QFormLayout.FieldRole, self.componentIndex_spinBox) self.conector_label = QtWidgets.QLabel(self.mainSettings_groupBox) self.conector_label.setObjectName("conector_label") self.formLayout.setWidget( 3, QtWidgets.QFormLayout.LabelRole, self.conector_label) self.connector_comboBox = QtWidgets.QComboBox( self.mainSettings_groupBox) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.connector_comboBox.sizePolicy().hasHeightForWidth()) self.connector_comboBox.setSizePolicy(sizePolicy) self.connector_comboBox.setObjectName("connector_comboBox") self.connector_comboBox.addItem("") self.formLayout.setWidget( 3, QtWidgets.QFormLayout.FieldRole, self.connector_comboBox) self.gridLayout_4.addLayout(self.formLayout, 0, 0, 1, 1) self.gridLayout.addWidget(self.mainSettings_groupBox, 0, 0, 1, 1) self.groupBox = QtWidgets.QGroupBox(Form) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setObjectName("groupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.host_label = QtWidgets.QLabel(self.groupBox) self.host_label.setObjectName("host_label") self.horizontalLayout_2.addWidget(self.host_label) self.host_lineEdit = QtWidgets.QLineEdit(self.groupBox) self.host_lineEdit.setObjectName("host_lineEdit") self.horizontalLayout_2.addWidget(self.host_lineEdit) self.host_pushButton = QtWidgets.QPushButton(self.groupBox) self.host_pushButton.setObjectName("host_pushButton") self.horizontalLayout_2.addWidget(self.host_pushButton) self.gridLayout_2.addLayout(self.horizontalLayout_2, 0, 0, 1, 1) self.gridLayout.addWidget(self.groupBox, 2, 0, 1, 1) self.jointConnectionSettings_groupBox = QtWidgets.QGroupBox(Form) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.jointConnectionSettings_groupBox.sizePolicy().hasHeightForWidth()) self.jointConnectionSettings_groupBox.setSizePolicy(sizePolicy) self.jointConnectionSettings_groupBox.setObjectName( "jointConnectionSettings_groupBox") self.gridLayout_3 = QtWidgets.QGridLayout( self.jointConnectionSettings_groupBox) self.gridLayout_3.setObjectName("gridLayout_3") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.useJointIndex_checkBox = QtWidgets.QCheckBox( self.jointConnectionSettings_groupBox) self.useJointIndex_checkBox.setObjectName("useJointIndex_checkBox") self.verticalLayout.addWidget(self.useJointIndex_checkBox) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.parentJointIndex_label = QtWidgets.QLabel( self.jointConnectionSettings_groupBox) self.parentJointIndex_label.setObjectName("parentJointIndex_label") self.horizontalLayout.addWidget(self.parentJointIndex_label) self.parentJointIndex_spinBox = QtWidgets.QSpinBox( self.jointConnectionSettings_groupBox) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.parentJointIndex_spinBox.sizePolicy().hasHeightForWidth()) self.parentJointIndex_spinBox.setSizePolicy(sizePolicy) self.parentJointIndex_spinBox.setMinimum(-1) self.parentJointIndex_spinBox.setMaximum(999999) self.parentJointIndex_spinBox.setProperty("value", -1) self.parentJointIndex_spinBox.setObjectName("parentJointIndex_spinBox") self.horizontalLayout.addWidget(self.parentJointIndex_spinBox) self.verticalLayout.addLayout(self.horizontalLayout) self.gridLayout_3.addLayout(self.verticalLayout, 0, 0, 1, 1) self.gridLayout.addWidget( self.jointConnectionSettings_groupBox, 1, 0, 1, 1) spacerItem = QtWidgets.QSpacerItem( 20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 4, 0, 1, 1) self.groupBox_2 = QtWidgets.QGroupBox(Form) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox_2.sizePolicy().hasHeightForWidth()) self.groupBox_2.setSizePolicy(sizePolicy) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_5.setObjectName("gridLayout_5") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.subGroup_lineEdit = QtWidgets.QLineEdit(self.groupBox_2) self.subGroup_lineEdit.setObjectName("subGroup_lineEdit") self.horizontalLayout_3.addWidget(self.subGroup_lineEdit) self.gridLayout_5.addLayout(self.horizontalLayout_3, 0, 0, 1, 1) self.gridLayout.addWidget(self.groupBox_2, 3, 0, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(238, 538) self.gridLayout = QtWidgets.QGridLayout(Form) self.gridLayout.setObjectName("gridLayout") self.groupBox_2 = QtWidgets.QGroupBox(Form) self.groupBox_2.setTitle("") self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_5.setObjectName("gridLayout_5") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.keepLength_checkBox = QtWidgets.QCheckBox(self.groupBox_2) self.keepLength_checkBox.setText("Keep Length") self.keepLength_checkBox.setObjectName("keepLength_checkBox") self.verticalLayout.addWidget(self.keepLength_checkBox) self.gridLayout_5.addLayout(self.verticalLayout, 0, 0, 1, 1) self.gridLayout.addWidget(self.groupBox_2, 0, 0, 1, 1) self.groupBox_3 = QtWidgets.QGroupBox(Form) self.groupBox_3.setObjectName("groupBox_3") self.gridLayout_6 = QtWidgets.QGridLayout(self.groupBox_3) self.gridLayout_6.setObjectName("gridLayout_6") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.jntNb_label = QtWidgets.QLabel(self.groupBox_3) self.jntNb_label.setObjectName("jntNb_label") self.horizontalLayout.addWidget(self.jntNb_label) self.jntNb_spinBox = QtWidgets.QSpinBox(self.groupBox_3) self.jntNb_spinBox.setMinimum(3) self.jntNb_spinBox.setMaximum(999) self.jntNb_spinBox.setProperty("value", 3) self.jntNb_spinBox.setObjectName("jntNb_spinBox") self.horizontalLayout.addWidget(self.jntNb_spinBox) self.gridLayout_6.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.gridLayout.addWidget(self.groupBox_3, 1, 0, 1, 1) self.tipRefArray_groupBox = QtWidgets.QGroupBox(Form) self.tipRefArray_groupBox.setObjectName("tipRefArray_groupBox") self.gridLayout_4 = QtWidgets.QGridLayout(self.tipRefArray_groupBox) self.gridLayout_4.setObjectName("gridLayout_4") self.tipRefArray_horizontalLayout = QtWidgets.QHBoxLayout() self.tipRefArray_horizontalLayout.setObjectName( "tipRefArray_horizontalLayout") self.tipRefArray_verticalLayout_1 = QtWidgets.QVBoxLayout() self.tipRefArray_verticalLayout_1.setObjectName( "tipRefArray_verticalLayout_1") self.tipRefArray_listWidget = QtWidgets.QListWidget( self.tipRefArray_groupBox) self.tipRefArray_listWidget.setDragDropOverwriteMode(True) self.tipRefArray_listWidget.setDragDropMode( QtWidgets.QAbstractItemView.InternalMove) self.tipRefArray_listWidget.setDefaultDropAction(QtCore.Qt.MoveAction) self.tipRefArray_listWidget.setAlternatingRowColors(True) self.tipRefArray_listWidget.setSelectionMode( QtWidgets.QAbstractItemView.ExtendedSelection) self.tipRefArray_listWidget.setSelectionRectVisible(False) self.tipRefArray_listWidget.setObjectName("tipRefArray_listWidget") self.tipRefArray_verticalLayout_1.addWidget( self.tipRefArray_listWidget) self.tipRefArray_copyRef_pushButton = QtWidgets.QPushButton( self.tipRefArray_groupBox) self.tipRefArray_copyRef_pushButton.setObjectName( "tipRefArray_copyRef_pushButton") self.tipRefArray_verticalLayout_1.addWidget( self.tipRefArray_copyRef_pushButton) self.tipRefArray_horizontalLayout.addLayout( self.tipRefArray_verticalLayout_1) self.tipRefArray_verticalLayout_2 = QtWidgets.QVBoxLayout() self.tipRefArray_verticalLayout_2.setObjectName( "tipRefArray_verticalLayout_2") self.tipRefArrayAdd_pushButton = QtWidgets.QPushButton( self.tipRefArray_groupBox) self.tipRefArrayAdd_pushButton.setObjectName( "tipRefArrayAdd_pushButton") self.tipRefArray_verticalLayout_2.addWidget( self.tipRefArrayAdd_pushButton) self.tipRefArrayRemove_pushButton = QtWidgets.QPushButton( self.tipRefArray_groupBox) self.tipRefArrayRemove_pushButton.setObjectName( "tipRefArrayRemove_pushButton") self.tipRefArray_verticalLayout_2.addWidget( self.tipRefArrayRemove_pushButton) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.tipRefArray_verticalLayout_2.addItem(spacerItem) self.tipRefArray_horizontalLayout.addLayout( self.tipRefArray_verticalLayout_2) self.gridLayout_4.addLayout(self.tipRefArray_horizontalLayout, 0, 0, 1, 1) self.gridLayout.addWidget(self.tipRefArray_groupBox, 3, 0, 1, 1) self.rootRefArray_groupBox = QtWidgets.QGroupBox(Form) self.rootRefArray_groupBox.setObjectName("rootRefArray_groupBox") self.gridLayout_3 = QtWidgets.QGridLayout(self.rootRefArray_groupBox) self.gridLayout_3.setObjectName("gridLayout_3") self.rootRefArray_horizontalLayout = QtWidgets.QHBoxLayout() self.rootRefArray_horizontalLayout.setObjectName( "rootRefArray_horizontalLayout") self.rootRefArray_verticalLayout_1 = QtWidgets.QVBoxLayout() self.rootRefArray_verticalLayout_1.setObjectName( "rootRefArray_verticalLayout_1") self.rootRefArray_listWidget = QtWidgets.QListWidget( self.rootRefArray_groupBox) self.rootRefArray_listWidget.setDragDropOverwriteMode(True) self.rootRefArray_listWidget.setDragDropMode( QtWidgets.QAbstractItemView.InternalMove) self.rootRefArray_listWidget.setDefaultDropAction(QtCore.Qt.MoveAction) self.rootRefArray_listWidget.setAlternatingRowColors(True) self.rootRefArray_listWidget.setSelectionMode( QtWidgets.QAbstractItemView.ExtendedSelection) self.rootRefArray_listWidget.setSelectionRectVisible(False) self.rootRefArray_listWidget.setObjectName("rootRefArray_listWidget") self.rootRefArray_verticalLayout_1.addWidget( self.rootRefArray_listWidget) self.rootRefArray_copyRef_pushButton = QtWidgets.QPushButton( self.rootRefArray_groupBox) self.rootRefArray_copyRef_pushButton.setObjectName( "rootRefArray_copyRef_pushButton") self.rootRefArray_verticalLayout_1.addWidget( self.rootRefArray_copyRef_pushButton) self.rootRefArray_horizontalLayout.addLayout( self.rootRefArray_verticalLayout_1) self.rootRefArray_verticalLayout_2 = QtWidgets.QVBoxLayout() self.rootRefArray_verticalLayout_2.setObjectName( "rootRefArray_verticalLayout_2") self.rootRefArrayAdd_pushButton = QtWidgets.QPushButton( self.rootRefArray_groupBox) self.rootRefArrayAdd_pushButton.setObjectName( "rootRefArrayAdd_pushButton") self.rootRefArray_verticalLayout_2.addWidget( self.rootRefArrayAdd_pushButton) self.rootRefArrayRemove_pushButton = QtWidgets.QPushButton( self.rootRefArray_groupBox) self.rootRefArrayRemove_pushButton.setObjectName( "rootRefArrayRemove_pushButton") self.rootRefArray_verticalLayout_2.addWidget( self.rootRefArrayRemove_pushButton) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.rootRefArray_verticalLayout_2.addItem(spacerItem1) self.rootRefArray_horizontalLayout.addLayout( self.rootRefArray_verticalLayout_2) self.gridLayout_3.addLayout(self.rootRefArray_horizontalLayout, 0, 0, 1, 1) self.gridLayout.addWidget(self.rootRefArray_groupBox, 2, 0, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(344, 635) self.verticalLayout_3 = QtWidgets.QVBoxLayout(Form) self.verticalLayout_3.setObjectName("verticalLayout_3") self.tools_groupBox = QtWidgets.QGroupBox(Form) self.tools_groupBox.setObjectName("tools_groupBox") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.tools_groupBox) self.verticalLayout_2.setObjectName("verticalLayout_2") self.settings_pushButton = QtWidgets.QPushButton(self.tools_groupBox) self.settings_pushButton.setObjectName("settings_pushButton") self.verticalLayout_2.addWidget(self.settings_pushButton) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.duplicate_pushButton = QtWidgets.QPushButton(self.tools_groupBox) self.duplicate_pushButton.setObjectName("duplicate_pushButton") self.horizontalLayout.addWidget(self.duplicate_pushButton) self.dupSym_pushButton = QtWidgets.QPushButton(self.tools_groupBox) self.dupSym_pushButton.setObjectName("dupSym_pushButton") self.horizontalLayout.addWidget(self.dupSym_pushButton) self.extrCtl_pushButton = QtWidgets.QPushButton(self.tools_groupBox) self.extrCtl_pushButton.setObjectName("extrCtl_pushButton") self.horizontalLayout.addWidget(self.extrCtl_pushButton) self.verticalLayout_2.addLayout(self.horizontalLayout) self.build_pushButton = QtWidgets.QPushButton(self.tools_groupBox) self.build_pushButton.setObjectName("build_pushButton") self.verticalLayout_2.addWidget(self.build_pushButton) self.verticalLayout_3.addWidget(self.tools_groupBox) self.list_groupBox = QtWidgets.QGroupBox(Form) self.list_groupBox.setObjectName("list_groupBox") self.verticalLayout = QtWidgets.QVBoxLayout(self.list_groupBox) self.verticalLayout.setObjectName("verticalLayout") self.search_lineEdit = QtWidgets.QLineEdit(self.list_groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.search_lineEdit.sizePolicy().hasHeightForWidth()) self.search_lineEdit.setSizePolicy(sizePolicy) self.search_lineEdit.setObjectName("search_lineEdit") self.verticalLayout.addWidget(self.search_lineEdit) self.splitter = QtWidgets.QSplitter(self.list_groupBox) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setObjectName("splitter") self.component_listView = DragQListView(self.splitter) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.component_listView.sizePolicy().hasHeightForWidth()) self.component_listView.setSizePolicy(sizePolicy) self.component_listView.setMinimumSize(QtCore.QSize(0, 0)) self.component_listView.setEditTriggers( QtWidgets.QAbstractItemView.NoEditTriggers) self.component_listView.setProperty("showDropIndicator", False) self.component_listView.setDragDropMode( QtWidgets.QAbstractItemView.NoDragDrop) self.component_listView.setDefaultDropAction(QtCore.Qt.CopyAction) self.component_listView.setAlternatingRowColors(True) self.component_listView.setSelectionMode( QtWidgets.QAbstractItemView.SingleSelection) self.component_listView.setObjectName("component_listView") self.info_plainTextEdit = QtWidgets.QPlainTextEdit(self.splitter) self.info_plainTextEdit.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.info_plainTextEdit.sizePolicy().hasHeightForWidth()) self.info_plainTextEdit.setSizePolicy(sizePolicy) self.info_plainTextEdit.setMinimumSize(QtCore.QSize(0, 50)) self.info_plainTextEdit.setMaximumSize(QtCore.QSize(16777215, 100)) self.info_plainTextEdit.setBaseSize(QtCore.QSize(0, 50)) self.info_plainTextEdit.setUndoRedoEnabled(False) self.info_plainTextEdit.setReadOnly(True) self.info_plainTextEdit.setPlainText("") self.info_plainTextEdit.setObjectName("info_plainTextEdit") self.verticalLayout.addWidget(self.splitter) self.draw_pushButton = QtWidgets.QPushButton(self.list_groupBox) self.draw_pushButton.setObjectName("draw_pushButton") self.verticalLayout.addWidget(self.draw_pushButton) self.showUI_checkBox = QtWidgets.QCheckBox(self.list_groupBox) self.showUI_checkBox.setChecked(True) self.showUI_checkBox.setObjectName("showUI_checkBox") self.verticalLayout.addWidget(self.showUI_checkBox) self.verticalLayout_3.addWidget(self.list_groupBox) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)