Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Re: Brian plugins for Gimp-2.10

Mon Mar 23, 2020 11:09 am

Removed the previous one.
Installed and run the new version.
It seems the error is still the same:

Cattura.PNG
Cattura.PNG (1.02 MiB) Viewed 1387 times

Re: Brian plugins for Gimp-2.10

Mon Mar 23, 2020 11:35 am

very likely the "edit_cut" a few statements above has removed the layer

CatturaCut.PNG
CatturaCut.PNG (23.01 KiB) Viewed 1383 times


if there is no selection the specified drawable is removed

Re: Brian plugins for Gimp-2.10

Mon Mar 23, 2020 11:37 am

Thanks for the test.
I will keep looking (the strangest thing is that i have no mistakes :gaah )

Re: Brian plugins for Gimp-2.10

Mon Mar 23, 2020 11:39 am

maybe you can execute the edit_cut ONLY if there is a selection

Re: Brian plugins for Gimp-2.10

Mon Mar 23, 2020 12:32 pm

Hello MareroQ,
I tested the download and the error is gone.

In this way again a big thank you from Germany !!!!!

Best regards, Hardy

Re: Brian plugins for Gimp-2.10

Mon Mar 23, 2020 11:22 pm

thank you MareroQ
Will try these out shortly.
I have Brian's Fan Illusion working on Gimp 2.10.12 Windows 10 64 bit
Brian if you are watching, Fan Illusion is one of my favourites.

Re: Brian plugins for Gimp-2.10

Tue Mar 24, 2020 2:06 am

@Mareroq
Info on my tests.
Back to Spider Paint.
I added in many places this couple of statements:
isempty=pdb.gimp_selection_is_empty(newImage) #dn
if isempty==False: #dn

and I finally got the outcome.
Here it is:
successful.jpg
successful.jpg (1.42 MiB) Viewed 1346 times

I do not post my version because this was a quick and dirty solution.
The basic problem in that filter is that Brian makes an extensive use of the Gimp instruction pdb.gimp_edit_cut
assuming the selection is there, but if for instance the filter did select color black and there are no color black areas in the layer, then Gimp removes the whole layer.
This suggests also why you do not get that error: it depends on the image used.
Hence I attach here the image I used for the test:
fantasy-3132293_1920.jpg
fantasy-3132293_1920.jpg (809.3 KiB) Viewed 1346 times


If you want to release an update to that filter, you need to spend a lot of time to check any situation where the edit cut is used without check: very annoying...

Re: Brian plugins for Gimp-2.10

Tue Mar 24, 2020 4:07 am

Hi Diego.

Thank You very much for the expert explanation of the problem.
A lot depends on the type of image.
For 100% certainty please confirm the instructions (only without 1px can I repeat the error):

You must use an image with alpha and transparency. Even if the
transparency is a 1 pixel eraser in a corner.

Re: Brian plugins for Gimp-2.10

Tue Mar 24, 2020 4:15 am

Hi P1937.
If you can post here Your version (preferably according to the scheme how as at the beginning of the thread),
Thanks.

Re: Brian plugins for Gimp-2.10

Tue Mar 24, 2020 5:15 am

MareroQ wrote:Hi Diego.

Thank You very much for the expert explanation of the problem.
A lot depends on the type of image.
For 100% certainty please confirm the instructions (only without 1px can I repeat the error):

You must use an image with alpha and transparency. Even if the
transparency is a 1 pixel eraser in a corner.

I confirm.
But let me say: these pre-conditions decided by Brian are a bit...ridiculous.
Better to add at the very beginning of the filter:
- pdb.gimp_layer_add_alpha....
- and an erase of -as you says- just pixel 1,1

Re: Brian plugins for Gimp-2.10

Tue Mar 24, 2020 5:55 am

I understand that after adding 1px the error does not occur.
Can you do it as an alternative version?

Re: Brian plugins for Gimp-2.10

Tue Mar 24, 2020 6:45 am

Here is my "quick and dirty" modified version, which accepts RGB* input images and erases pixel 1,1 for safety.
It's suffixed with an M.
BA_SpiderPaintM.7z
(9.21 KiB) Downloaded 108 times

Re: Brian plugins for Gimp-2.10

Tue Mar 24, 2020 7:27 am

Thanks Diego - works as agreed. :paint

Re: Brian plugins for Gimp-2.10

Tue Mar 24, 2020 7:59 am

"Quick and dirty" spider-painted wasp. Windows 10 GIMP 2.10.14. Thanks to all for all the work!

Wasp Spider Paint.jpg
Wasp Spider Paint.jpg (523.97 KiB) Viewed 1353 times

Re: Brian plugins for Gimp-2.10

Tue Mar 24, 2020 7:26 pm

Thank you, MareroQ for all your work and efforts to adjust these filters to 2.10. And also to Dinasset for your added effort and knowledge. The work done by both of you is greatly appreciated!

Re: Brian plugins for Gimp-2.10

Tue Mar 24, 2020 10:44 pm

Fan Illusion.JPG
Fan Illusion.JPG (82.07 KiB) Viewed 1328 times
Hello MareroQ
Reference your post #29
Here is the Window which appears when I use BA Fan Illusion.

Re: Brian plugins for Gimp-2.10

Thu Mar 26, 2020 12:04 pm

Hi P1937.

Thanks for adding. Where are Your examples?

Re: Brian plugins for Gimp-2.10

Thu Mar 26, 2020 7:26 pm

The error I get when running BA Fan Illusion is this:
Image

Re: Brian plugins for Gimp-2.10

Thu Mar 26, 2020 9:02 pm

I am sorry but I was waiting for the first to report it. :gaah

For Windows, the code must start with: :geek

Code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Mackenzieh - can you add this 2 lines it and confirm the solution to the problem? :yes

Re: Brian plugins for Gimp-2.10

Thu Mar 26, 2020 9:29 pm

MareroQ wrote:I am sorry but I was waiting for the first to report it. :gaah

For Windows, the code must start with: :geek

Code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Mackenzieh - can you add this 2 lines it and confirm the solution to the problem? :yes


I added the code to the beginning of the code in notepad and I received this error:
Image
Post a reply