ECToo / pymel

Automatically exported from code.google.com/p/pymel
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by deadper...@gmail.com on 1 Jul 2014 at 11:51