def __init__(self, parent=None, *args, **kwargs): super(CreateControllerLayout, self).__init__(*args, **kwargs) self.setupUi(self) # Create Button Groups (because we get compile errors if # trying to create these in the .ui file). self.node_type_btnGrp = QtWidgets.QButtonGroup() self.node_type_btnGrp.addButton(self.group_rdo_btn) self.node_type_btnGrp.addButton(self.locator_rdo_btn) self.bake_mode_btnGrp = QtWidgets.QButtonGroup() self.bake_mode_btnGrp.addButton(self.full_bake_rdo_btn) self.bake_mode_btnGrp.addButton(self.smart_bake_rdo_btn) self.bake_mode_btnGrp.addButton(self.current_frame_rdo_btn) self.space_btnGrp = QtWidgets.QButtonGroup() self.space_btnGrp.addButton(self.world_space_rdo_btn) self.space_btnGrp.addButton(self.object_space_rdo_btn) self.space_btnGrp.addButton(self.screen_space_rdo_btn) # Create Connections self.main_object_btn.clicked.connect(self.get_main_object) self.pivot_object_btn.clicked.connect(self.get_pivot_object) self.smart_bake_rdo_btn.clicked.connect( self.smart_bake_radio_button_clicked) self.full_bake_rdo_btn.clicked.connect( self.fullbake_space_radio_button_clicked) self.current_frame_rdo_btn.clicked.connect( self.fullbake_space_radio_button_clicked) self.reset_options()
def __init__(self, parent=None, *args, **kwargs): super(CameraBodyTrackScaleRigBakeLayout, self).__init__(*args, **kwargs) self.setupUi(self) # Create Button Groups (because we get compile errors if # trying to create these in the .ui file). self.scale_rig_type_btnGrp = QtWidgets.QButtonGroup() self.scale_rig_type_btnGrp.addButton(self.cameraTrackScaleRadioButton) self.scale_rig_type_btnGrp.addButton(self.bodyTrackScaleRadioButton) # Create connections self.sceneGetButton.clicked.connect(self.scene_get_button_clicked) self.rigsGetButton.clicked.connect(self.controls_get_button_clicked) self.cameraTrackScaleRadioButton.toggled.connect( self.scale_rig_options_changed) self.bodyTrackScaleRadioButton.toggled.connect( self.scale_rig_options_changed) self.populate_ui()