LumaPictures / pymel

Python in Maya Done Right
Other
479 stars 130 forks source link

Using the type flag in pm.newFile() causes Maya to crash. #346

Closed pmolodo closed 7 years ago

pmolodo commented 8 years ago

From deadper...@gmail.com on July 01, 2014 16:51:43

Describe the problem. Using the 'type' flag in pm.newFile() causes Maya to crash. What Version of Maya are you using? Maya 2014 x64 Service Pack 4, Maya 2015 x64 Service Pack 2 On what operating system? (be as specific as possible and include service packs, 64bit vs 32bit, etc) Windows 7 Enterprise x64 Service Pack 1 What Version of PyMEL are you using? Maya 2014: PyMEL version 1.0.5 Maya 2015: PyMEL version 1.0.6 What is the expected output? What do you see instead? We're expecting Maya to reset to a new scene. Instead, Maya crashes when the 'type' flag is used, regardless of the string arg used ('mayaAscii', 'mayaBinary', 'OBJ', etc.). If possible, provide a few lines of code to reproduce the problem. It helps us if your code will reproduce the problem from a new scene. #Instant crash import pymel.core as pm pm.newFile(type='mayaAscii') Does maya.cmds exhibit the same problem? #The equivalent command for cmds doesn't crash. import maya.cmds as cmds cmds.file(type='mayaAscii') Please provide any additional information below. The crash does not repro in Maya 2013 x64 Service Pack 2 (PyMEL version 1.0.4).

I do realize that it's a little strange to declare a new file type when starting a new scene (usually we put this in pm.saveAs()), but the option is there.

Original issue: http://code.google.com/p/pymel/issues/detail?id=313