Method 1)
pm.createReference("C:/full/file/path.mb") - buggy, pops up a
fileDialog2 no matter what args are used.
Method 2)
pm.mel.file("filepath.mb",r=True) - pymel error:
# MelError: Error during execution of MEL script: line 1: Too many
arguments. Expected 1, found 2.
# Calling Procedure: file, in Command
# file -r True "C:/full/file/path.mb" #
Method 3)
pm.mel.eval("file -r \ "C:/full/file/path.mb\"") works, but adds 6
commands to the undo queue. Also: having to use pm.mel.eval? wtf?
Environment:
Maya 2011 x64, Win7
So, what method are you guys using to create a file reference?
-Ian
--
http://groups.google.com/group/python_inside_maya