From: Greg Ercolano <erco@(email surpressed)>
Subject: Re: GUI Elements
   Date: Tue, 07 Jun 2011 01:58:24 -0400
Msg# 2108
View Complete Thread (4 articles) | All Threads
Last Next
On 06/06/11 18:46, Daniel Browne wrote:
> Thanks Greg. I actually had to go back to using a regular input field due
> to the way data is passed to the input routine in this script.

	Can you describe more of what you're doing?
	Maybe include some examples and such.

> I was not able to get the input engine to recognize the [gui] elements
> (i.e. box {}) directly.

	Take a look at the rush/examples/input-example.pl
	or for python, the rush/examples/input-example.py

	These show simple examples of how the input elements work.

	Some of the older submit scripts still use the raw input
	command language instead of the ascii art stuff, eg.
	submit-arnold.pl. Search that file for "Arnold-Submit"
	and you'll find the beginning of the input command file.

	Also, you can find the raw input command language
	generated from the ascii art as ~/.rush/submit-xxxx.in
	You can then take this, paste it into a python script
	and modify it to taste, and pass it to the input program
	to customize.

	For instance, when I run submit-maya.pl, I end up with:

-------------------------------------------------------
$ ls -la ~/.rush/submit-maya.in
-rw-rw-rw- 1 root root 18076 Jun  6 12:30 /root/.rush/submit-maya.in

$ more ~/.rush/submit-maya.in
    window
    {
        name   "Rush Maya Submit"
        xysize 720 546
        color  49
        resizable
        menubar
        scroll 1
        saveid "Maya-Submit"
    }
    xy 150 25
    # EMPTY 'SEPARATOR' BOX
    box
    {
        align     0
        type      0             # use '1' for debugging
        color     0
        xywh      0 25 8 8
    }

[..]
-------------------------------------------------------

	..and to bring up the input interface for that file,
	I can run:

-------------------------------------------------------
$ /usr/local/rush/examples/bin/input -d  ~/.rush/submit-maya.in
-------------------------------------------------------

	..and the interface pops up.

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