在实际的cg生产制作的过程中为了节省时间提高效率往往会运用批量去处理一些动画文件把他们的动画曲线全部导出,根据需求写了一个小小的脚本进行批处理动画曲线。
界面如上图所示。
部分代码如下:
# -*- coding:utf-8 -*-
import sys
import os
import subprocess
from qss import uiQss
from PySide import QtGui as QtWidgets
from PySide import QtCore
from PySide import QtGui
QtCore.QCoreApplication.addLibraryPath(os.path.join(os.path.dirname(QtCore.__file__), "plugins"))
import mouseDragEvent
MAYABATCHPATH = 'D:/Autodesk Maya/Maya2017/bin/mayabatch.exe'
class MainView(QtWidgets.QDialog):
def __init__(self, parent=None):
super(MainView, self).__init__(parent)
self.setWindowTitle('Export AnimationCurves')
self._mainUI()
def _mainUI(self):
resultLButton = QtGui.QPushButton(u'确定')
self.listWidget = mouseDragEvent.My_ListWidget(self)