Custom fix FileMenu.mel stops Maya 2013 from loading.

Custom fix FileMenu.mel stops Maya 2013 from loading.

bksong
Enthusiast Enthusiast
725 Views
1 Reply
Message 1 of 2

Custom fix FileMenu.mel stops Maya 2013 from loading.

bksong
Enthusiast
Enthusiast

I'm trying to set up the pipeline for Maya and Source Engine as shown below:

http://robhowland.net/files/Maya_to_Source_Model_Importing.pdf

 

However, I could not set up a new project (// Error: Cannot find procedure “NewProject")

 and the directions online said to replace the filemenu.mel with this script:

http://www.holetzky.de/FileMenu.mel

 

However, once I replaced it (the directory for the original was my docs/maya/2013-x64/scripts/), during the splash loading screen, the command window logs a couple of errors:

// Error: file: E:/Program Files/Autodesk/Maya2013/scripts/startup/uiRes.mel line 121: displayString identifier "m_FileMenu.kCreateReferenceAnnot" does not exist. // 

(and a bit later)

// Error: file: E:/Program Files/Autodesk/Maya2013/mentalray/scripts/mentalrayUI.mel line 1607: menu: Object 'mainRenderMenu' not found. // 

Here's a screen shot of the command window:

http://imgur.com/a/V17k1

 

I'm not sure if it's because I'm still learning Maya, but there are so many tool/graphical bugs! 😞

0 Likes
726 Views
1 Reply
Reply (1)
Message 2 of 2

cyrille
Alumni
Alumni

Hi

 

I do not know that project and it seems a bit old and does not seems to be maintained (the last update was for Maya 2012), so will comment only on the errors you are having:

 

1) in the custom FileMenu.mel file the m_FileMenu.kCreateReferenceAnnot appears on line #524 like this:  -annotation (uiRes("m_FileMenu.kCreateReferenceAnnot"))

Note the uiRes() method, it means that the script tries to find a FileMenu.res.mel with an entry named like this. Because you do not provide your own, Maya loads it from its default FileMenu.res.mel file located at \scripts\startup. And if you open that file, you'll see that kCreateReferenceAnnot does not exist. So this project is not complete. An easy fix wouldbe to duplicate the file in your user profile, and create the entry missing entry(ies). You may need to go back in previous releases to find that string if it ever existed in Maya.

 

2) Same here, this 'project' was made on an old release and the Maya script have changed since. I made a quick diff between Maya mel files and this project, and the changes are quite significant. You'll need to start from Maya 2012 and make the appropriate changes to get it working. The NewProject and mainRenderMenu are typically errors of incompatible scripts. Object or method which exist in the new script version which got deleted by you when you copied the script in place of the new Maya script. Again doing a diff through the script history since the last maintained version of that script will point you to the right direction.

 

Another solution would be to contact the author of that script and ask for an updated version.

 

Hope that helps,

 

 

 

 

0 Likes