Esempio n. 1
0
 def create_widgets(self):
     self.pose_name_field = shared_widgets.StringFieldWidget("Pose name:", button=False)
     self.pose_name_field.line_edit.setValidator(pysideFn.ReValidators.no_space)
     self.driver_field = shared_widgets.StringFieldWidget("Driver:", button_text="Set")
     self.driver_field.button.setMinimumWidth(40)
     self.components_list = shared_widgets.ComponentsListing(base_type=luna_rig.components.CorrectiveComponent, general_types_enabled=False)
     self.controls_list = shared_widgets.ControlsList(self.components_list)
     self.export_button = QtWidgets.QPushButton("Export")
Esempio n. 2
0
 def create_widgets(self):
     self.range_widget = shared_widgets.TimeRangeWidget()
     self.components_grp = QtWidgets.QGroupBox("Components")
     self.components_wgt = shared_widgets.ComponentsListing()
     # Bake buttons
     self.bake_to_skel_btn = QtWidgets.QPushButton("Bake to skeleton")
     self.bake_to_rig_btn = QtWidgets.QPushButton("Bake to rig")
     self.bake_and_detach_btn = QtWidgets.QPushButton("Bake and detach")
     self.remove_rig_button = QtWidgets.QPushButton("Remove rig")
     self.remove_rig_button.setStyleSheet("background-color: rgb(144,0,0);")
Esempio n. 3
0
    def create_widgets(self):
        self.time_range_wgt = shared_widgets.TimeRangeWidget()
        self.time_offset_dspinbox = QtWidgets.QDoubleSpinBox()
        self.time_offset_dspinbox.setButtonSymbols(
            QtWidgets.QAbstractSpinBox.NoButtons)

        self.source_group = QtWidgets.QGroupBox("Source component")
        self.source_component_wgt = shared_widgets.ComponentsListing()
        self.source_component_wgt.list.setSelectionMode(
            QtWidgets.QListWidget.SingleSelection)
        self.target_group = QtWidgets.QGroupBox("Target component")
        self.target_component_wgt = shared_widgets.ComponentsListing()

        self.vertical_splitter = QtWidgets.QSplitter()
        self.vertical_splitter.addWidget(self.source_group)
        self.vertical_splitter.addWidget(self.target_group)
        self.transfer_button = QtWidgets.QPushButton("Transfer")

        self.problems_log = QtWidgets.QTextEdit()
        self.problems_log.setReadOnly(True)
        self.status_bar = QtWidgets.QStatusBar()
Esempio n. 4
0
 def create_widgets(self):
     self.pose_name_field = shared_widgets.StringFieldWidget("Pose name:",
                                                             button=False)
     self.pose_name_field.line_edit.setValidator(
         pysideFn.ReValidators.no_space)
     self.driver_field = shared_widgets.StringFieldWidget("Driver:",
                                                          button_text="Set")
     self.driver_field.button.setMinimumWidth(40)
     self.driver_field.line_edit.setReadOnly(True)
     self.driver_value_field = shared_widgets.NumericFieldWidget(
         "Driver value:", data_type="double", default_value=10.0)
     self.components_list = shared_widgets.ComponentsListing()
     self.controls_list = shared_widgets.ControlsList(self.components_list)
     self.export_button = QtWidgets.QPushButton("Export")
Esempio n. 5
0
 def create_widgets(self):
     self.range_widget = shared_widgets.TimeRangeWidget()
     self.options_group = QtWidgets.QGroupBox("Options")
     self.fk_source_radio = QtWidgets.QRadioButton("FK")
     self.fk_source_radio.setChecked(True)
     self.ik_source_radio = QtWidgets.QRadioButton("IK")
     self.checkbox_pv_bake = QtWidgets.QCheckBox("Pole vector")
     self.checkbox_pv_bake.setChecked(True)
     self.checkbox_pv_bake.setEnabled(self.fk_source_radio.isChecked())
     self.step_field = shared_widgets.NumericFieldWidget("Step:",
                                                         data_type="int",
                                                         default_value=1)
     self.components_wgt = shared_widgets.ComponentsListing(
         base_type=luna_rig.components.FKIKComponent,
         general_types_enabled=False)
     self.bake_button = QtWidgets.QPushButton("Bake")