From: Abraham Schneider <aschneider@(email surpressed)>
Subject: Deactivating parts of submit-scripts?
   Date: Mon, 26 Sep 2005 09:46:29 -0700
Msg# 1044
View Complete Thread (4 articles) | All Threads
Last Next
Hi there!

Just installed the new version of rush here, works fine. One question about the submitscripts and this new layout format:

is there any way to deactiviate some of the GUI elements which I don't need, without removing them completely from the script?

Would be nice to comment out things like the "image command" or "job start command" line.

I tried do it with the normal comment #. But that didn't work. I only got an error message while opening the script.

Any chance to do is or do I have to remove the whole functions from the script?

Thanks in advance,

Abraham

--
Abraham Schneider
VFX Compositor

ARRI Film & TV Services GmbH
Tuerkenstr. 89
D-80799 Muenchen

Phone: +49 89 3809-1269
Mobile: +49 173 5719842
Email: aschneider@(email surpressed)

   From: Greg Ercolano <erco@(email surpressed)>
Subject: Re: Deactivating parts of submit-scripts?
   Date: Mon, 26 Sep 2005 10:54:12 -0700
Msg# 1045
View Complete Thread (4 articles) | All Threads
Last Next
Abraham Schneider wrote:
[posted to rush.general]

Hi there!

Just installed the new version of rush here, works fine. One question about the submitscripts and this new layout format:

is there any way to deactiviate some of the GUI elements which I don't need, without removing them completely from the script?

Would be nice to comment out things like the "image command" or "job start command" line.

I tried do it with the normal comment #. But that didn't work. I only got an error message while opening the script.

Any chance to do is or do I have to remove the whole functions from the script?

	Hmm, interesting question.

	Yes, it looks like you can't insert '#' into the GUI layout
	section of the perl script, ie:

---- snip
                Ram: ______________ ?
       Submit Hosts: __________________________________________________ ?


  Job Start Command: ___________________________________________ ? Browse
   Job Done Command: ___________________________________________ ? Browse
   Job Dump Command: ___________________________________________ ? Browse
---- snip

	That part of the script is not perl, but is text passed to the
	"CreateInputForm()" function defined in the .common.pl script,
	and that function currently does not honor '#'s in its input.

	So yes, you have to delete the lines to prevent it from showing up.

	However, you /could/ add this single line of code to the .common.pl
	script to make it honor '#' comments in the GUI section.

	Search for 'sub CreateInputForm' in the .common.pl, and then
	find the following section, and add the single line 'ADD THIS LINE'
	below:

---- snip
[..]
    # PARSE EACH LINE OF THE TEXT LAYOUT
    my $s;
    foreach $s ( split('\n', $form, -1 ) )
    {
	if ( $s =~ /^#/ ) { next; }		#### ADD THIS LINE ####

        # HANDLE RAW-INPUT MODE
        #    This allows caller to insert raw input(1) commands
        #    into the screen definition.
        #
[..]
---- snip

	I believe that's all that's needed to enable '#'s in the GUI section.


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

   From: Abraham Schneider <aschneider@(email surpressed)>
Subject: Re: Deactivating parts of submit-scripts?
   Date: Tue, 27 Sep 2005 06:39:05 -0700
Msg# 1051
View Complete Thread (4 articles) | All Threads
Last Next
Greg Ercolano schrieb:
    However, you /could/ add this single line of code to the .common.pl
    script to make it honor '#' comments in the GUI section.

    Search for 'sub CreateInputForm' in the .common.pl, and then
    find the following section, and add the single line 'ADD THIS LINE'
    below:

---- snip
[..]
    # PARSE EACH LINE OF THE TEXT LAYOUT
    my $s;
    foreach $s ( split('\n', $form, -1 ) )
    {
    if ( $s =~ /^#/ ) { next; }        #### ADD THIS LINE ####

        # HANDLE RAW-INPUT MODE
        #    This allows caller to insert raw input(1) commands
        #    into the screen definition.
        #
[..]
---- snip

    I believe that's all that's needed to enable '#'s in the GUI section.

Ok, that works almost, but not completely: if I do this with the "Image Command" line, I always get this error message when starting the script:

input: /mnt/homes/aschneid/.rush/.shaketest-last: Line 13: unknown field 'ImageCommand'

that also happens if I delete the .xyz-last file.

Any ideas about that?

Thanks, Abraham

--
Abraham Schneider
VFX Compositor

ARRI Film & TV Services GmbH
Tuerkenstr. 89
D-80799 Muenchen

Phone: +49 89 3809-1269
Mobile: +49 173 5719842
Email: aschneider@(email surpressed)

   From: Greg Ercolano <erco@(email surpressed)>
Subject: Re: Deactivating parts of submit-scripts?
   Date: Tue, 27 Sep 2005 10:26:58 -0700
Msg# 1052
View Complete Thread (4 articles) | All Threads
Last Next
Abraham Schneider wrote:
    if ( $s =~ /^#/ ) { next; }        #### ADD THIS LINE ####

Ok, that works almost, but not completely: if I do this with the "Image Command" line, I always get this error message when starting the script:

input: /mnt/homes/aschneid/.rush/.shaketest-last: Line 13: unknown field 'ImageCommand'

that also happens if I delete the .xyz-last file.

Any ideas about that?

	Yes, once you remove a field, then you must remove all references to
	that field's variable name in the file.

	Note that the 'variable name' of all the fields is the field's name
	without any spaces.

	Since the field you're removing is "Image Command", the variable name
	will be "ImageCommand" (no spaces).

	So search for all instances of "ImageCommand" in the script, and remove
	them.


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