Instantly share code, notes, and snippets.

@fereria /mfileio.py Secret
Created Feb 16, 2014

Embed
What would you like to do?
import maya.OpenMaya as om
io = om.MFileIO()
#開いているファイルのパスを取得
io.currentFile()
#ファイル名を変更してセーブ
io.setCurrentFile("E:/testB.ma")
io.save()
#ExportSelection
io.exportSelected("E:/testCube.ma")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment