From: Daniel Browne <dbrowne@(email surpressed)>
Subject: Re: Maya Python Submit
   Date: Tue, 12 Apr 2011 17:09:07 -0400
Msg# 2091
View Complete Thread (7 articles) | All Threads
Last Next
That's cool Greg; sure, I'll give it a whirl. I couldn't see a way to do it myself since the submit script version I have seems dependent upon using the -last file to pass parameters to display the gui.

Python is great, though I dislike the lack of delimiter braces and the =~ regex operator from Perl.


On Apr 12, 2011, at 2:02 PM, Greg Ercolano wrote:

[posted to rush.general]

Greg Ercolano wrote:
> $ python
> Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42)
> [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import submit_maya
>>>> submit_maya.MAIN_Input()
> 
>    With this in mind, I'll try to redesign the script a little bit
>    so that MAIN_Input() can accept an optional dict of presets.

       OK Daniel, I've made a few small changes to the maya submit
       so that one can pass in a dict to preload the submit form, eg:

   $ python
   Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42)
   [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
   Type "help", "copyright", "credits" or "license" for more information.
>>> import submit_maya
>>> submit_maya.MAIN_Input( {"Frames":"66-77"} )

	..so this would preload the Frames: field with "66-77".
	Turns out this was really easy to add.

	I can make this new script available to you if you like,
	though I'm still doing some testing ATM with the "Layers And Frames"
	I've been working on the last day or so, and am just doing final tests.

	I must admit, I'm really liking python over perl,
	no doubt about it.. a much better language for our purposes.

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

----------
Dan "Doc" Browne
System Administrator
Evil Eye Pictures

dbrowne@(email surpressed)
Office: (415) 777-0666 x105


Last Next