It is currently 17 Dec 2017, 23:05

GIMP Python Fu ScriptsPancake or Cookie Script Fixed 2.8.16 up to 22 (Showcase | Slideshow)

Share your Python Fu scripts for GIMP here
User avatar
animicule

Script Coder
View: Showcase | Slideshow
Topic Posts: 38/60
Posts: 594
Joined: 10 Jan 2017, 07:25
Cash on hand: 558.96 GLP
Bank: 36,031.00 GLP
Gender: Guy
Location: South Dakota
Operating System: Windows
GIMP Version: 2.9.5
x 164
United States of America

Re: Pancake or Cookie Script rev3

Post#50 by animicule » 05 Jun 2017, 06:42


Tin,
Just for information - I think the problem has been:
In gimp 2.8.16, if get parent finds no parent and returns nothing: 2.8.16 seems to be okay with that.
Probably in newer version that was fixed to that it needs a value, and it returns message with -1 (have seen it before when value was missing/invalid - doesn't really mean -1), so now if no parent, I am using: None (can't find anything else to fix).
0 x




Registered members enjoy ads-free content
User avatar
tim
Administrator
View: Showcase | Slideshow
Topic Posts: 14/60
Posts: 2000
Joined: 25 Sep 2016, 17:16
Cash on hand: 6,288.73 GLP
Bank: 41,331.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1006
x 217
Contact:
Canada

Post#51 by tim » 05 Jun 2017, 06:45


r3 error:
Traceback (most recent call last):
File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 736, in response
dialog.res = run_script(params)
File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 361, in run_script
return apply(function, params)
File "C:\Users\Tim\.gimp-2.8\plug-ins\BA_Pancake_r3.py", line 194, in BA_PANCAKE_r3
unpack_group(workLay)
File "C:\Users\Tim\.gimp-2.8\plug-ins\BA_Pancake_r3.py", line 40, in unpack_group
glaynum, glayids = pdb.gimp_item_get_children(grp0)
RuntimeError: execution error
0 x



aka Tin
Image gimplearn.net                                              

User avatar
animicule

Script Coder
View: Showcase | Slideshow
Topic Posts: 38/60
Posts: 594
Joined: 10 Jan 2017, 07:25
Cash on hand: 558.96 GLP
Bank: 36,031.00 GLP
Gender: Guy
Location: South Dakota
Operating System: Windows
GIMP Version: 2.9.5
x 164
United States of America

Post#52 by animicule » 05 Jun 2017, 06:55


Thank you very much for the report!
I will step through it again tonight looking for inconsistency.
1 x




User avatar
animicule

Script Coder
View: Showcase | Slideshow
Topic Posts: 38/60
Posts: 594
Joined: 10 Jan 2017, 07:25
Cash on hand: 558.96 GLP
Bank: 36,031.00 GLP
Gender: Guy
Location: South Dakota
Operating System: Windows
GIMP Version: 2.9.5
x 164
United States of America

Post#53 by animicule » 06 Jun 2017, 06:19


Another try, eliminated the get children command for a workaround.
If this version doesn't work with 2.8.18-2.8.22 could someone test
the layer effects outerglow and see if the outcome is in a layer group?
Here are a couple new outcomes using gimp 2.8.16 and version 3b.
Attachments
playwithv3b.png
playwithv3b.png # (664.45 KiB) Viewed 162 times (Watermarked | Thumbnail)
blossom-200933_1920, BA_Pancake_Medium.jpg
blossom-200933_1920, BA_Pancake_Medium.jpg # (78.29 KiB) Viewed 162 times (Watermarked | Thumbnail)
0 x




User avatar
tim
Administrator
View: Showcase | Slideshow
Topic Posts: 14/60
Posts: 2000
Joined: 25 Sep 2016, 17:16
Cash on hand: 6,288.73 GLP
Bank: 41,331.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1006
x 217
Contact:
Canada

Post#54 by tim » 06 Jun 2017, 06:44


rev3b: it creates new image, is that what it's supposed to do? well it runs for me anyways.
cookie_pancake_test_result.jpg
cookie_pancake_test_result.jpg # (29.45 KiB) Viewed 160 times (Watermarked | Thumbnail)
0 x



aka Tin
Image gimplearn.net                                              

User avatar
animicule

Script Coder
View: Showcase | Slideshow
Topic Posts: 38/60
Posts: 594
Joined: 10 Jan 2017, 07:25
Cash on hand: 558.96 GLP
Bank: 36,031.00 GLP
Gender: Guy
Location: South Dakota
Operating System: Windows
GIMP Version: 2.9.5
x 164
United States of America

Post#55 by animicule » 06 Jun 2017, 07:12


Yes, create new pancake or cookie image!
All other options should work fine also.
Thank you!
I have questions about pdb browser in 2.8.22 now..
If you have time, could you please do searches as shown and let me know results.
I think now that bug is in 2.8.18 - 2.8.22
Attachments
pdb_group search.jpg
pdb_group search.jpg # (41.74 KiB) Viewed 157 times (Watermarked | Thumbnail)
child_search.jpg
child_search.jpg # (37.25 KiB) Viewed 157 times (Watermarked | Thumbnail)
Last edited by animicule on 06 Jun 2017, 07:45, edited 1 time in total.
0 x




User avatar
tim
Administrator
View: Showcase | Slideshow
Topic Posts: 14/60
Posts: 2000
Joined: 25 Sep 2016, 17:16
Cash on hand: 6,288.73 GLP
Bank: 41,331.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1006
x 217
Contact:
Canada

Post#56 by tim » 06 Jun 2017, 07:22


here are my searches
gimp_item_is_group.jpg
gimp_item_is_group.jpg # (98.88 KiB) Viewed 155 times (Watermarked | Thumbnail)
gimp_item_get_children.jpg
gimp_item_get_children.jpg # (79.91 KiB) Viewed 155 times (Watermarked | Thumbnail)
0 x



aka Tin
Image gimplearn.net                                              

Post Reply

Last 20 Members Who Visited This Topic

User avatar PhotoMaster (2), User avatar gnerd (13), User avatar tim (2)

  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: Pat625
2: tim
3: RJKD
4: oldmangrumpy
5: oldmangrumpy
6: Alan
7: Pat625

Who is online

Users browsing this forum: No registered users and 3 guests