ajrAutoSave 1.3 for Maya (maya script)

Similar to PowerAnimator 'safety save'...

Back to Bugs List Previous Next

Bugs

kills file menu

Statuspending
Priorityhigh
Date09/04/2009
Submitted by Jeremy Chinn Jeremy Chinn
In 2009.1 attaching it to the userSetup.mel seems to blow away the file menu leaving only the auto save options.  A simple buildFileMenu; after the global string $gMainFileMenu; in the ajrAS_FileMenu() proc fixed it without issue.

Thanks.

Comments on this bug:

  • man0war

    man0war said almost 15 years ago:

    Hey Jeremy if you want a fix that does not require editing the original script try the following in the userSetup.mel instead. // Roger Klado ( cly_doh's > Maya 2008 file menu friendly ajrAutoSave userSetup.mel ) float $mayaVersion = `getApplicationVersionAsFloat`; if ( `getApplicationVersionAsFloat` > 2008 ) { print ( `getApplicationVersionAsFloat`+ " \n" ); string $cmd = " buildFileMenu(); ajrAutoSave; ajrAutoSave; "; // repeated. once fer creation and again for window launch scriptJob -runOnce true // scriptjob dies on execution "menuItem will survive new scenes and menuMode changes" -event "SceneOpened" $cmd; } else { ajrAutoSave; ajrAutoSave; // repeated. once fer creation and again for window launch print ( $mayaVersion + " !\n"); } I have not tried a fix directly in the script so I am not sure if the behavior is the same but I found that I still had problems with opening new scenes in some script strategies that suffered with Maya's new buildFileMenu strategy. The userSetup code I posted solves for that problem as well. Hope that helps
    Report

Post a comment:

Sign in