On 2011.03.12 00:38, hapgilmore wrote:
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?
try cmds.mel.eval instead. if it still creates 6 undo items, enclose
into undoInfo(openChunk=True) and closeChunk. there's nothing wrong
with using mel.eval in general. for example, python versions of commands
won't allow supplying values in query mode (like,
myCustomCommand(id=10,q=True,name=True)), and you'll need to fall back
to mel.
--
Viktoras
www.neglostyti.com
--
http://groups.google.com/group/python_inside_maya