ernstAlert
(ernstAlert)
September 23, 2016, 11:42pm
1558
Hello Guys,
i just read threw the post about the saving issue with the student version of maya. i am working on a project involving the import of mocap via the import mocap tool from the epic games plugin. But when i want to save the file, an error occurs in the script editor telling:
file -f -save -options “v=0;”;
// Error: line 0: Could not save file “D:-(directory of the scene)-” //.
The image above shows whats appearing when i run the script that is suggested here:
if type(newName) is list:
newName = newName[0]
cmds.file( rename=newName )
cmds.file(save = True, type = “mayaBinary”, force = True, prompt = True)
print “File Saved as:”, newName
And this Error appears after running that script:
Error: line 1: NameError: file <maya console> line 1: name ‘newName’ is not defined
maybe i missed something and i would really appreciate some help
Not sure which post this was pulled from, but as the error states, newName is never defined anywhere. It’s likely the script had something beforehand that defined newName. maybe try adding this to the beginning:
newName = cmds.file(q = True, sceneName = True)