From: Greg Ercolano <erco@(email surpressed)>
Subject: Re: Maya 7.0 bug with fix
   Date: Mon, 14 Nov 2005 18:08:15 -0800
Msg# 1114
View Complete Thread (2 articles) | All Threads
Last Next
	Also, this is another item that might be relevant for those of you
	using "submit-maya.pl" script (which uses the older syntax, and implements
	mental ray rendering using MEL commands to invoke the Mayatomr plugin.)

	Thanks to the folks at Guru for this submit-maya.pl mod:

* * *

Hi Greg,

	When trying to render to a different directory, these commands don't work
	anymore for Maya 7 for some reason. They did in Maya 6.

// Image dir specified? Use it.
if ( "$opt{ImageDirectory}" != "-" )
{
    if ( chdir( "$opt{ImageDirectory}" ) != 0 )
    { error("chdir($opt{ImageDirectory}): failed\\n"); }

    // Force Mayatomr to use our ImageDirectory. -erco 02/09/04
    setAttr "mentalrayGlobals.outp" -type "string" "$opt{ImageDirectory}";
}

	I've found that if you use the workspace command instead, the specified
	image directory is used properly.

// the above chdir commands dont work anymore in v7 for some reason
workspace -rt "images" "$opt{ImageDirectory}";

--
Bryan Huo
guru Animation

Last Next