seems to work for OSX. although i havent crashed yet, but the menu appears fine. nice script, very useful, thanks
madRecentCrashFile.mel 1.1.0 for Maya (maya script)
The MEL that you shouldn
1-6 of 6
Previous
Next
Reviews Love it? Or maybe you want to share some creative ways you're putting this item to use.
-

-
anyone tested this with maya 2009? if i execute it, my file menu is gone and only recent crash is in it. -
under winxp64 maya 2009 x64, I placed the source statement in the userSetup.mel, and it runs but all the other menuItems are gone now, I mean there are no other menuItems on file menu anymore... -
allright I fixed it, the problem was, the script was executed before the MainFileMenu is build, so placing buildFileMenu() at the begining fixed the problem, here is the fixed version: global proc madRecentCrashFile() { buildFileMenu(); global string $gMainFileMenu; setParent -m $gMainFileMenu; menuItem -l "Recent Crashfile" -sm true -ia FileMenuRecentFileItems MCRecentCrashMenu; string $tmpPath = `internalVar -utd`; string $tmpFileList[] = `getFileList -folder $tmpPath -filespec "*.ma"`; $i = 0; for( $i = size($tmpFileList)-1; $i > size($tmpFileList) - min(10,size($tmpFileList)); --$i) { menuItem -l ($tmpFileList[$i]) -c ("file -f -options \"v=0\" -typ \"mayaAscii\" -o \"" + $tmpPath + $tmpFileList[$i] + "\""); } setParent -m ..; setParent -m ..; } madRecentCrashFile;
Please confirm your email before commenting.