Post Reply 

python fu plugin

May 1, 2011, 16:40
Post: #1
python fu plugin
trying to use the python plugin ScrnshotTearoff but when the option menu opens its too big & I cannot execute it, I cannot resize the height but I can the width I cannot move it to get to the apply button, it use to be ok , can I change the script to make the height smaller or what
Find all posts by this user
Quote this message in a reply
May 1, 2011, 17:46
Post: #2
RE: python fu plugin
If you are talking about this one:

http://registry.gimp.org/node/10977

Then the size of the dialog is due to the number of options. Report the problem to the author (possibly via the URL above).

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
May 2, 2011, 01:47
Post: #3
RE: python fu plugin
it appears the author is aware of the problem

"Footnote: if, like me, you have a vertically-challenged display (my laptop runs 1366x768 pixels) then the lower portion of the parameters dialog may "fall off" the screen. Under Linux, you can hold down Alt, click on any blank area of the dialog, and drag it up to view the rest of the dialog."

I have a 23" widescreen monitor so I guess the aspect ratio throws it off for the height, think I will try changing that & see what happens
Thanks for your reply
Find all posts by this user
Quote this message in a reply
May 2, 2011, 07:05
Post: #4
RE: python fu plugin
(May 2, 2011 01:47)pamopar Wrote:  it appears the author is aware of the problem

"Footnote: if, like me, you have a vertically-challenged display (my laptop runs 1366x768 pixels) then the lower portion of the parameters dialog may "fall off" the screen. Under Linux, you can hold down Alt, click on any blank area of the dialog, and drag it up to view the rest of the dialog."

I have a 23" widescreen monitor so I guess the aspect ratio throws it off for the height, think I will try changing that & see what happens
Thanks for your reply
No, I don't think it's a matter of aspect ratio. but your 23" should have 1080 vertical pixels and that should be enough? On my 900pix display, I can display dialogs with 20 options...

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
May 2, 2011, 18:51
Post: #5
RE: python fu plugin
my vertical display is 1080 so you are correct, if I change my monitor to the portrait setting I can see the whole dialog, course its a bit hard on the neck, in which case means I wont be using Tearoff
Find all posts by this user
Quote this message in a reply
May 2, 2011, 20:29
Post: #6
RE: python fu plugin
IMHO a script with that many options is useless. But it's not too difficult to edit the thing to hardcode your default values, though.

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
May 2, 2011, 20:50
Post: #7
RE: python fu plugin
I was tying to erase some of the parameters but it would not work , gave me a message that it required 20some & I had it at 17 guess there was another line I should have changed
Find all posts by this user
Quote this message in a reply
May 2, 2011, 22:22
Post: #8
RE: python fu plugin
Yes. Typically you have:

Code:
register(
... bunch of parameters ...

name_of_function
menu="<Image>/Filters/..."
)

Elsewhere in the code you will find:

Code:
def name_of_function(image,drawable,... long list of parameters)

this is the function called. So if you want to remove parameters, you have to change that to:

Code:
register(
... your bunch of parameters ...

your_name_of_wrapper_function
menu="<Image>/Filters/..."
)

and elsewhere you need two lines:

Code:
def your_name_of_wrapper_function(image,drawable,... your list of parameters)
    name_of_function(image,drawable,... long list of parameters with some hardcoded values)
where you replace the parameter you don't get by the dialog by a hardcoded value.

Python is picky on the indentation, see if you have tabs or spaces (and how many) at the beginning of indented lines and do the same.

Start gimp using gimp-console to see Python syntax errors.

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  plugin save for web in Gimp 2.9.6 Dkk 1 62 Oct 19, 2017 09:02
Last Post: paynekj
  Loading PythonFu Plugin: ImportError for .../python/gimp.so (GIMP 2.8.22/OSX/Py2.7.9) joroek 1 260 Jul 11, 2017 07:26
Last Post: ythgilb
  [Easy] Sobel plugin parameters t4u 2 319 Oct 7, 2014 19:09
Last Post: ofnuts
  Color menuitems in script or plugin Barbie 4 527 Sep 29, 2014 09:51
Last Post: paynekj
  Setting text markup from python script Burbly 1 393 Sep 16, 2014 12:29
Last Post: Burbly

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS