It is currently 15 Dec 2017, 04:19

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: 593
Joined: 10 Jan 2017, 07:25
Cash on hand: 530.89 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

Post#15 by animicule » 31 May 2017, 15:34


I don't know the "ran it with the discard text info top text layer" flow.
I either make new from visible or merge the text layer down, and I have never seen that error, will try to duplicate it to see..
Thank you for the report.
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 1004
x 217
Contact:
Canada

Post#16 by tim » 31 May 2017, 16:14


Oh what i mean it's just a text layer i created but i discarded text information (right click text layer, Discard Text Information) to make it just a regular layer that has image of text.
0 x



aka Tin
Image gimplearn.net                                              

User avatar
animicule

Script Coder
View: Showcase | Slideshow
Topic Posts: 38/60
Posts: 593
Joined: 10 Jan 2017, 07:25
Cash on hand: 530.89 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#17 by animicule » 01 Jun 2017, 06:42


About the gimp-item-is-group -1 or something error,
That command is not called directly from the Pancake script, so I thought it must be
from one of the other animstack or layerfx routines...


Thanks for the tip! I will try that tonight.
I renamed script and plugin folders and added only the 2 dependencies.
I run window 7 and gimp 2.8.16
I found 2 versions of I found 2 versions of animstack
animstack 0.61
;;; GIMP Animation Tools
;;; by Timofei Shatrov
;;; v. 0.61
and animstack 0.62
;;; GIMP Animation Tools
;;; by Timofei Shatrov
;;; v. 0.62
with Gimp 2.8.16,
both unpacked the layer group created with
layerfx.2.8.py
# GIMP Layer Effects
# Copyright (c) 2008 Jonathan Stipe
# JonStipe@prodigy.net

I can only repeat Issabella's error message by removing animstack.scm
I tried to find another way to unpack the layergroup within python, but did not succeed
last night, but still have more ideas to test.

Tim,
RuntimeError: Error: ( : 1) Procedure execution of gimp-item-is-group failed on invalid input arguments: Procedure 'gimp-item-is-group' has been called with value '-1' for argument 'item' (#1, type GimpItemID). This value is out of range.

I tried BA_Pancake doing:
1. Made New Image, removed the only layer (transparent background), opened the gimp text tool and typed some text
ran the pancake script on the only layer (the txt layer )- it created the new image with one layer
with transparency and the text surrounded with Pancake's outerglow.
2. New Image, left the default layer, opened text tool and typed some text, made the default
layer active and ran the pancake script on the default (blank transparent) layer. - it
created a new image with one layer which was transparent with nothing on it.
3. Opened an Isolated Subject, opened text tool and typed some text,
1. Made the text layer active, ran BA_Pancake with result of text on pancake in a new image which had the single outcome layer.
2. Had both layers (text layer above the subject layer) did make new layer from visible.
A. Subject layer active ran BA_Pancake, normal new image with single outcome layer
with the subject over pancake (on same layer)
B. Text layer active ran BA_Pancake, normal new image with single outcome layer
text over pancake (on same layer)
C. the new from VISIBLE layer active ran BA_Pancake, normal new image with single
outcome layer with the subject and text all over pancake (on same layer).
I will also try tonight using the your method.

Do you think that the newer version of Gimp has made some changes internally with
regards to handling layergroups ?
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 1004
x 217
Contact:
Canada

Post#18 by tim » 01 Jun 2017, 08:22


It's very possible that newer GIMP isn't compatible with stackanim script.
here's my error trace:
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.py", line 167, in BA_PANCAKE
pdb.script_fu_unpack_layer_group(img, parent)
RuntimeError: Error: ( : 1) Procedure execution of gimp-item-is-group failed on invalid input arguments: Procedure 'gimp-item-is-group' has been called with value '-1' for argument 'item' (#1, type GimpItemID). This value is out of range.
0 x



aka Tin
Image gimplearn.net                                              

User avatar
animicule

Script Coder
View: Showcase | Slideshow
Topic Posts: 38/60
Posts: 593
Joined: 10 Jan 2017, 07:25
Cash on hand: 530.89 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#19 by animicule » 02 Jun 2017, 06:38


Version 2 works exactly like version 1, but the dependency on AnimStack has been removed.
Please let me know that this works on Gimp versions newer than 2.8.16 which runs it just fine.
Attachments
finaltest.png
finaltest.png # (267.68 KiB) Viewed 129 times (Watermarked | Thumbnail)
0 x




User avatar
animicule

Script Coder
View: Showcase | Slideshow
Topic Posts: 38/60
Posts: 593
Joined: 10 Jan 2017, 07:25
Cash on hand: 530.89 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#20 by animicule » 02 Jun 2017, 06:40


An example of running twice with a very thin effect layer selection the 2nd time (2nd run over the 1st outcome).
Attachments
double_run.png
double_run.png # (551.34 KiB) Viewed 129 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 1004
x 217
Contact:
Canada

Post#21 by tim » 02 Jun 2017, 07:05


I get this error now (version 2):
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_v2.py", line 167, in BA_PANCAKE_v2
totalnum,position = pdb.gimp_item_get_children(parent)
RuntimeError: Procedure 'gimp-item-get-children' has been called with value '-1' for argument 'item' (#1, type GimpItemID). This value is out of range.
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: david
2: Pat625
3: animicule
4: tim
5: trandoductin
6: RJKD
7: Issabella

Who is online

Users browsing this forum: No registered users and 2 guests