From: Stephan Kosinski <stephan@logan.tv> Subject: [SUBMIT WINDOW] How to change the default size. Date: Tue, 23 Sep 2008 17:51:00 -0400 |
Msg# 1780 View Complete Thread (3 articles) | All Threads Last Next |
Hello,I'm using the submit-maya.pl script a lot on Linux and the ScenePath, Project, ImageDirectory and MayaFlags field where a little bit short for long paths to fit in them. I have succeeded making the fields longer by adding some "__" in the perl submit script but unfortunately, when I launch the script in need to resize the window by hand to access the "browse" button. Is there a way to setup a windows size for each submit script?I've checked the method in "input-example.pl" but it does not seem to be the same in the maya one. Thank you for your help. Stephan. |
From: Greg Ercolano <erco@(email surpressed)> Subject: Re: [SUBMIT WINDOW] How to change the default size. Date: Tue, 23 Sep 2008 19:04:00 -0400 |
Msg# 1781 View Complete Thread (3 articles) | All Threads Last Next |
Stephan Kosinski wrote: > I'm using the submit-maya.pl script a lot on Linux and the ScenePath, > Project, ImageDirectory and MayaFlags field where a little bit short for > long paths to fit in them. > > I have succeeded making the fields longer by adding some "__" in the > perl submit script but unfortunately, when I launch the script in need > to resize the window by hand to access the "browse" button. Yes; the 'ascii art' style input forms you see in the submit-xxx scripts (which use that "___" syntax to define the submit form) indeed have a "preset size" which all the submit scripts try to follow. That preset size of 700 is defined in the CreateInputForm() function in the .common.pl file, which you'll find in the same directory as your submit-maya.pl script. So to change it, just edit the .common.pl file, in the same dir as your submit-maya.pl script, and find the line that reads: my $win_w = 700; # width of window ..and change the 700 to a larger value to make the window wider. This will then affect *all* the submit-xxx scripts that are 'ascii art' oriented, which is most of them. > I've checked the method in "input-example.pl" but it does not seem to > be the same in the maya one. Yes, that example does not use the 'ascii art' technique which most of the submit scripts now use (for brevity). The ascii art is translated by the above 'CreateInputForm()' function into the command language that the input-example.pl program uses. This 'command language' is what all the submit scripts /used/ to use, before I realized it made the scripts much easier to read and modify by using the newer ascii art syntax, which is what they all use now. That's why it's a bit different. |
From: Stephan Kosinski <stephan@logan.tv> Subject: Re: [SUBMIT WINDOW] How to change the default size. Date: Tue, 23 Sep 2008 21:40:54 -0400 |
Msg# 1782 View Complete Thread (3 articles) | All Threads Last Next |
Hello Greg, Thank you very much! Greg Ercolano wrote: Stephan Kosinski wrote:I'm using the submit-maya.pl script a lot on Linux and the ScenePath, Project, ImageDirectory and MayaFlags field where a little bit short for long paths to fit in them.I have succeeded making the fields longer by adding some "__" in the perl submit script but unfortunately, when I launch the script in need to resize the window by hand to access the "browse" button.Yes; the 'ascii art' style input forms you see in the submit-xxx scripts (which use that "___" syntax to define the submit form) indeed have a "preset size" which all the submit scripts try to follow. That preset size of 700 is defined in the CreateInputForm() function in the .common.pl file, which you'll find in the same directory as your submit-maya.pl script. So to change it, just edit the .common.pl file, in the same dir as your submit-maya.pl script, and find the line that reads: my $win_w = 700; # width of window ..and change the 700 to a larger value to make the window wider. This will then affect *all* the submit-xxx scripts that are 'ascii art' oriented, which is most of them.I've checked the method in "input-example.pl" but it does not seem to be the same in the maya one.Yes, that example does not use the 'ascii art' technique which most of the submit scripts now use (for brevity). The ascii art is translated by the above 'CreateInputForm()' function into the command language that the input-example.pl program uses. This 'command language' is what all the submit scripts /used/ to use, before I realized it made the scripts much easier to read and modify by using the newer ascii art syntax, which is what they all use now. That's why it's a bit different. |