From: Greg Ercolano <erco@(email surpressed)>
Subject: Re: submit-maya.pl patch for Maya 7.0
   Date: Mon, 05 Sep 2005 20:57:19 -0700
Msg# 1023
View Complete Thread (2 articles) | All Threads
Last Next
Greg Ercolano wrote:
MAYA 7.0 + Mentalray + Rush 102.42a (or older) submit-maya.pl
-------------------------------------------------------------
[..]
or you can /manually/ apply the modifications to your existing submit-maya.pl script,

    Just for the record, to fix your existing submit-maya.pl scripts,
    you can just find all occurances of these lines in a text editor:


// Init mray globals
setAttr "mentalrayGlobals.startFrame"     $opt{sfrm};
setAttr "mentalrayGlobals.endFrame"       $opt{efrm};
setAttr "mentalrayGlobals.byFrame"        1;
setAttr "mentalrayGlobals.startExtension" $opt{sfrm};
setAttr "mentalrayGlobals.byExtension"    1;


    ..and replace them with these lines:


// Init mray globals
//
// Maya 6.x and older                                  // Maya 7.x and up
// ------------------                                  // ---------------
setAttr "mentalrayGlobals.startFrame"     $opt{sfrm};  setAttr "defaultRenderGlobals.startFrame"     $opt{sfrm};
setAttr "mentalrayGlobals.endFrame"       $opt{efrm};  setAttr "defaultRenderGlobals.endFrame"       $opt{efrm};
setAttr "mentalrayGlobals.byFrame"        1;           setAttr "defaultRenderGlobals.byFrame"        1;
setAttr "mentalrayGlobals.startExtension" $opt{sfrm};  setAttr "defaultRenderGlobals.startExtension" $opt{sfrm};
setAttr "mentalrayGlobals.byExtension"    1;           setAttr "defaultRenderGlobals.byExtension"    1;

    ..this will ensure submit-maya.pl will work with both maya 6.x and 7.x.

    Be sure to replace all occurrances -- there are at least two
    sections of the script where that block of lines appears.

Last Next