From: Greg Ercolano <erco@(email surpressed)>
Subject: Re: Maya Python Submit
   Date: Tue, 12 Apr 2011 15:33:49 -0400
Msg# 2086
View Complete Thread (7 articles) | All Threads
Last Next
Daniel Browne wrote:
> I'm revamping one of my submit tools and it appears that in order for me to=
>  feed parameters to the Maya submit window in your python version (or for t=
> hat matter the Perl version) is by creating the "-last" settings file. Is t=
> hat correct? I can't just feed in a dictionary?

	Might need more info on what you're doing.

	Are you trying to invoke the python script as an external script?
	If so, the command line should accept -field arguments, eg:

os.system("python /path/to/submit-maya.py -field Frames 1-100 -field JobTitle TEST_123")

	Or if you're trying to manipulate the -last file so as to rewrite the
	file, then I'm not sure how a dict would work there; dicts are internal
	variables.. I might be missing something. The format of the -last file
	is a Key: Value file format that can be Loaded/Saved with the
	Rush.LoadInput() and Rush.SaveInput() functions in Rush.py

	By passing a dict, do you mean trying to 'import' the submit script
	and manipulate it directly by passing variables into the subroutines?
	If so, the script wasn't meant to be 'import'ed, but perhaps it could be
	modified to be. The only code provided for import is the Rush.py

-- 
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