From: Greg Ercolano <erco@(email surpressed)>
Subject: Re: Newbie submit script not working
   Date: Mon, 24 Oct 2011 18:35:55 -0400
Msg# 2136
View Complete Thread (23 articles) | All Threads
Last Next
On 10/24/11 15:23, Kevin Sallee wrote:
> On 10/24/2011 05:20 PM, Greg Ercolano wrote:
>> On 10/24/11 15:08, Kevin Sallee wrote:
>> [..]
>>> Error: Cannot find procedure "AbcExport".
>>>
>>> So it seems it's not finding the plugins. where should i specify the
>>> path for the plugins?
>>>      
>> 	Probably a separate MAYA_PLUG_IN_PATH environment variable, eg:
>>
>> 		os.environ["MAYA_PLUG_IN_PATH"] = "/some/path/to/your/plugins"

> Ok that's a great answer! thank you very much, i'm gonna try it right 
> away :)

	Great.. and feel free to keep progress updated on the thread,
	which I've cc'ed here.

	BTW, note you can get one script to do both the submit and render;
	just add a special flag (eg. -render) which the 'submit' part of
	the script can specify as the command it sends to rush, so when
	the script runs on the render nodes, it runs a different part of
	the script to handle the rendering.

	It's a cool way of getting one script to do the work of two.

	This is a special form of "recursion" that you have to handle
	carefully, otherwise you'll end up with a 'network worm' where
	you create a job that submits jobs..!

	You can end up with that situation even with two scripts, where
	you accidentally submit a job that runs the submitter script
	instead of the render script.

	To prevent that, add some code in your submit code as follows
	to protect it from accidentally being run as if it were a render.

	The daemons always set the RUSH_ISDAEMON variable before running
	a render, so you can check this variable just before submitting
	the job to "short-circuit" such a problem before it goes out of
	control. eg:

if os.environ.is_key("RUSH_ISDAEMON"):
    print "Avoiding recursion: exiting"
    sys.exit(1)
else:
    # Submit the job
    submit = os.popen("rush -submit", 'w')
    [..]

-- 
Greg Ercolano, erco@(email surpressed)
Seriss Corporation
Rush Render Queue, http://seriss.com/rush/
Tel: (Tel# suppressed)ext.23
Fax: (Tel# suppressed)
Cel: (Tel# suppressed)


Last Next