Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fereria
Created February 16, 2014 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fereria/b25e392e743f8ab62cee to your computer and use it in GitHub Desktop.
Save fereria/b25e392e743f8ab62cee to your computer and use it in GitHub Desktop.
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