(self)
When SHOT selected in UI
When SHOT selected in UI
When SHOT selected in UI
def init_shot(self):
        """
        When SHOT selected in UI
        """

        # Show and set up PROPERTIES widget
        self.project_properties_ui.hide()
        self.asset_properties_ui.hide()
        self.sequence_properties_ui.hide()
        self.shot_properties_ui.show()

        # Setup data
        model_index = self.listShots.currentIndex()
        shot_id = model_index.data(QtCore.Qt.UserRole + 1)
        shot = self.eve_data.get_shot(shot_id)
        self.selected_shot = shot

        # FILL SHOT ASSETS WIDGET
        self.eve_data.get_shot_assets(shot_id)
        self.model_shot_assets = models.ListModel(self.eve_data.shot_assets)
        self.shot_properties_ui.shot_ui.listAssets.setModel(self.model_shot_assets)

        # Fill SHOT WIDGET
        self.shot_properties_ui.shot_ui.linShotName.setEnabled(False)
        self.shot_properties_ui.shot_ui.linProjectName.setText(self.selected_project.name)
        self.shot_properties_ui.shot_ui.linSequenceName.setText(self.selected_sequence.name)
        self.shot_properties_ui.shot_ui.linShotName.setText(self.selected_shot.name)
        self.shot_properties_ui.shot_ui.linStartFrame.setText(str(shot.start_frame))
        self.shot_properties_ui.shot_ui.linEndFrame.setText(str(shot.end_frame))
        self.shot_properties_ui.shot_ui.linWidth.setText(str(shot.width))
        self.shot_properties_ui.shot_ui.linHeight.setText(str(shot.height))
        self.shot_properties_ui.shot_ui.txtDescription.setText(shot.description)
def init_shot ( self ) : # Show and set up PROPERTIES widget self . project_properties_ui . hide ( ) self . asset_properties_ui . hide ( ) self . sequence_properties_ui . hide ( ) self . shot_properties_ui . show ( ) # Setup data model_index = self . listShots . currentIndex ( ) shot_id = model_index . data ( QtCore . Qt . UserRole + 1 ) shot = self . eve_data . get_shot ( shot_id ) self . selected_shot = shot # FILL SHOT ASSETS WIDGET self . eve_data . get_shot_assets ( shot_id ) self . model_shot_assets = models . ListModel ( self . eve_data . shot_assets ) self . shot_properties_ui . shot_ui . listAssets . setModel ( self . model_shot_assets ) # Fill SHOT WIDGET self . shot_properties_ui . shot_ui . linShotName . setEnabled ( False ) self . shot_properties_ui . shot_ui . linProjectName . setText ( self . selected_project . name ) self . shot_properties_ui . shot_ui . linSequenceName . setText ( self . selected_sequence . name ) self . shot_properties_ui . shot_ui . linShotName . setText ( self . selected_shot . name ) self . shot_properties_ui . shot_ui . linStartFrame . setText ( str ( shot . start_frame ) ) self . shot_properties_ui . shot_ui . linEndFrame . setText ( str ( shot . end_frame ) ) self . shot_properties_ui . shot_ui . linWidth . setText ( str ( shot . width ) ) self . shot_properties_ui . shot_ui . linHeight . setText ( str ( shot . height ) ) self . shot_properties_ui . shot_ui . txtDescription . setText ( shot . description )