基於Vertex的表情鏡像的max工具腳本-《Python-UI篇1-1》——補充篇

這是 Max2017中做的補充,Max2016沒有這些

import pysideuic
from PySide import QtCore, QtGui

fname = "F:\\ExpressiongMirror.ui"
formt, btype = MaxPlus.LoadUiType(fname)

class TestWidget(btype, formt):
	def __init__(self):
		btype.__init__(self)
		formt.__init__(self)
		self.setupUi(self)

	def ResetXFormToPolyClicked(self):
		print "ResetXFormToPolyClicked"

	def GetSampleClicked(self):
		print "GetSampleClicked"

	def MirrorVertexClicked(self):
		print "MirrorVertexClicked"

	def GetLocalSampleClicked(self):
		print "GetLocalSampleClicked"

	def MirrorLocalVertexClicked(self):
		print "MirrorLocalVertexClicked"

form = TestWidget()
form.show()

因爲Max2017支持Py文件的直接運行,所以Ctrl+E運行就有了上一篇的界面。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章