def __init__( self, parent = pyside_util.get_maya_window(), *args ): super( MultiBlastUI, self ).__init__( parent ) self.setupUi( self ) self.setWindowTitle( '{0} {1}'.format( WINDOW_TITLE, str( WINDOW_VERTION ) ) ) #self.mayaFilesTableWidget.itemDoubleClicked.connect( self.bdToggleFile ) self.mayaFilesPathBtn.clicked.connect(lambda: self.bdGetPath('maya')) self.blastsPathBtn.clicked.connect(lambda: self.bdGetPath('avi')) self.camPathBtn.clicked.connect(lambda: self.bdGetPath('cam')) self.rigPathBtn.clicked.connect(lambda: self.bdGetPath('rig')) self.playblastBtn.clicked.connect(self.bdPlayblastFolder) self.mayaFilesTableWidget.itemDoubleClicked.connect( self.bdToggleStatus ) self.formatComboBox.currentIndexChanged.connect(self.bdFormatChanged) self.lastVersion.stateChanged.connect(self.bdGetLastVersion) self.mayaFilesTableWidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.mayaFilesTableWidget.customContextMenuRequested.connect(self.handleHeaderMenu) layout = mui.MQtUtil.fullName(long(shiboken.getCppPointer(self.playblastOptionGrp)[0])) formats = pm.playblast(q=1,format=1) self.formatComboBox.addItems(formats) selectedFormat = self.formatComboBox.currentText() cmd = 'playblast -format "' + selectedFormat + '" -q -compression' compression = pm.mel.eval(cmd) self.encodingComboBox.clear() self.encodingComboBox.addItems(compression) self.progressBar.hide() self.show()
def __init__(self, parent=pyside_util.get_maya_window(), *args): super(MultiBlastUI, self).__init__(parent) self.setupUi(self) self.setWindowTitle('{0} {1}'.format(WINDOW_TITLE, str(WINDOW_VERTION))) # self.mayaFilesTableWidget.itemDoubleClicked.connect( self.bdToggleFile ) self.mayaFilesPathBtn.clicked.connect(lambda: self.bdGetPath('maya')) self.blastsPathBtn.clicked.connect(lambda: self.bdGetPath('avi')) self.camPathBtn.clicked.connect(lambda: self.bdGetPath('cam')) self.rigPathBtn.clicked.connect(lambda: self.bdGetPath('rig')) self.playblastBtn.clicked.connect(self.bdPlayblastFolder) self.mayaFilesTableWidget.itemDoubleClicked.connect( self.bdToggleStatus) self.formatComboBox.currentIndexChanged.connect(self.bdFormatChanged) self.lastVersion.stateChanged.connect(self.bdGetLastVersion) self.mayaFilesTableWidget.setContextMenuPolicy( QtCore.Qt.CustomContextMenu) self.mayaFilesTableWidget.customContextMenuRequested.connect( self.handleHeaderMenu) layout = mui.MQtUtil.fullName( long(shiboken.getCppPointer(self.playblastOptionGrp)[0])) formats = pm.playblast(q=1, format=1) self.formatComboBox.addItems(formats) selectedFormat = self.formatComboBox.currentText() cmd = 'playblast -format "' + selectedFormat + '" -q -compression' compression = pm.mel.eval(cmd) self.encodingComboBox.clear() self.encodingComboBox.addItems(compression) self.progressBar.hide() self.show()
def __init__( self, parent = pyside_util.get_maya_window(), *args ): super( Environment_Tool, self ).__init__( parent ) self.setupUi( self ) self.setWindowTitle( '{0} {1}'.format( WINDOW_TITLE, str( WINDOW_VERTION ) ) ) #self.add_path_button.clicked.connect( self.add_path ) #self.remove_path_button.clicked.connect( self.remove_path ) #self.load_paths() self.show()
def __init__( self, parent = pyside_util.get_maya_window(), *args ): super( LipAnimUI, self ).__init__( parent ) self.path = '' self.lipAnimBlendshapes = [] self.sliders = [] self.setupUi( self ) self.setWindowTitle( '{0} {1}'.format( WINDOW_TITLE, str( WINDOW_VERTION ) ) ) self.bdPopulateMeshes() self.bdAddSliders() self.show()
def __init__(self, parent=pyside_util.get_maya_window(), *args): super(LipAnimUI, self).__init__(parent) self.path = '' self.lipAnimBlendshapes = [] self.sliders = [] self.setupUi(self) self.setWindowTitle('{0} {1}'.format(WINDOW_TITLE, str(WINDOW_VERTION))) self.bdPopulateMeshes() self.bdAddSliders() self.show()
def __init__( self, parent = pyside_util.get_maya_window(), *args ): super( ImportObjUI, self ).__init__( parent ) self.path = '' self.setupUi( self ) self.setWindowTitle( '{0} {1}'.format( WINDOW_TITLE, str( WINDOW_VERTION ) ) ) self.objPathBtn.clicked.connect(self.bdGetObjPath) self.importBtn.clicked.connect(self.bdImportObjs) self.exportBtn.clicked.connect(self.bdExportObjs) self.show()
def __init__( self, parent = pyside_util.get_maya_window(), *args ): super( AnimationToolUI, self ).__init__( parent ) self.wipFolderPath = '' self.playblastCam = None self.setupUi( self ) self.setWindowTitle( '{0} {1}'.format( WINDOW_TITLE, str( WINDOW_VERTION ) ) ) self.wipHheader = self.wipAnimTable.horizontalHeader() self.wipHheader.setStretchLastSection(True) self.previewHheader = self.previewAnimTable.horizontalHeader() self.previewHheader.setStretchLastSection(True) self.wipAnimTable.setAlternatingRowColors(1) self.previewAnimTable.setAlternatingRowColors(1) self.getWipFolder() self.wipAnimBtn.clicked.connect(self.setWipFolder) self.openFileBtn.clicked.connect(self.openSelectedFile) self.openFolderBtn.clicked.connect(self.openFolder) self.saveFileBtn.clicked.connect(self.saveNewVersion) self.copyToPreviewBtn.clicked.connect(self.copyAnim) self.playblastBtn.clicked.connect(self.playblastCurrent) self.copyPlayblastBtn.clicked.connect(self.copyPlayblast) self.playblastCamBtn.clicked.connect(self.setCamera) self.newAnimBtn.clicked.connect(self.createAnimFile) self.wipAnimTable.cellPressed.connect(self.clearPreviewSelection) self.wipAnimTable.doubleClicked.connect(self.openSelectedFile) #self.wipAnimTable.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) #self.wipAnimTable.customContextMenuRequested.connect(self.previewTableMenu) self.previewAnimTable.cellPressed.connect(self.clearWipSelection) self.previewAnimTable.doubleClicked.connect(self.openSelectedFile) self.lastVersionCheckBox.stateChanged.connect(self.bdGetLastVersion) self.show() self.resize(860,600) self.openSceneCallback = None '''
def __init__(self, parent=pyside_util.get_maya_window(), *args): super(AnimationToolUI, self).__init__(parent) self.wipFolderPath = '' self.playblastCam = None self.setupUi(self) self.setWindowTitle('{0} {1}'.format(WINDOW_TITLE, str(WINDOW_VERTION))) self.wipHheader = self.wipAnimTable.horizontalHeader() self.wipHheader.setStretchLastSection(True) self.previewHheader = self.previewAnimTable.horizontalHeader() self.previewHheader.setStretchLastSection(True) self.wipAnimTable.setAlternatingRowColors(1) self.previewAnimTable.setAlternatingRowColors(1) self.getWipFolder() self.wipAnimBtn.clicked.connect(self.setWipFolder) self.openFileBtn.clicked.connect(self.openSelectedFile) self.openFolderBtn.clicked.connect(self.openFolder) self.saveFileBtn.clicked.connect(self.saveNewVersion) self.copyToPreviewBtn.clicked.connect(self.copyAnim) self.playblastBtn.clicked.connect(self.playblastCurrent) self.copyPlayblastBtn.clicked.connect(self.copyPlayblast) self.playblastCamBtn.clicked.connect(self.setCamera) self.newAnimBtn.clicked.connect(self.createAnimFile) self.wipAnimTable.cellPressed.connect(self.clearPreviewSelection) self.wipAnimTable.doubleClicked.connect(self.openSelectedFile) # self.wipAnimTable.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) # self.wipAnimTable.customContextMenuRequested.connect(self.previewTableMenu) self.previewAnimTable.cellPressed.connect(self.clearWipSelection) self.previewAnimTable.doubleClicked.connect(self.openSelectedFile) self.lastVersionCheckBox.stateChanged.connect(self.bdGetLastVersion) self.show() self.resize(860, 600) self.openSceneCallback = None '''