It is currently 20 Feb 2018, 23:16

GIMP TutorialsHow to write Plug-in for GIMP in Python (Showcase | Slideshow)

GIMP Tutorials
User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 10/18
Posts: 2162
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,946.37 GLP
Bank: 51,356.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 1207
x 258
Contact:
Canada

Re: How to write Plug-in for GIMP in Python

Post#8 by tim » 11 Oct 2017, 16:05


I secretly want to raise an army of Python-Fu Script Coders hehe!
1 x



aka Tin
Image gimplearn.net                                              

Registered members enjoy ads-free content
User avatar
animicule
Script Coder
View: Showcase | Slideshow
Topic Posts: 2/18
Posts: 614
Joined: 10 Jan 2017, 15:25
Cash on hand: 148.06 GLP
Bank: 56,999.00 GLP
Gender: Guy
Location: South Dakota
Operating System: Windows
GIMP Version: 2.9.5
x 169
United States of America

Post#9 by animicule » 12 Oct 2017, 13:41


Zombie coders?
0 x




User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 10/18
Posts: 2162
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,946.37 GLP
Bank: 51,356.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 1207
x 258
Contact:
Canada

Post#10 by tim » 12 Oct 2017, 16:34


sure I'll accept zombie ones :D
0 x



aka Tin
Image gimplearn.net                                              

User avatar
animicule
Script Coder
View: Showcase | Slideshow
Topic Posts: 2/18
Posts: 614
Joined: 10 Jan 2017, 15:25
Cash on hand: 148.06 GLP
Bank: 56,999.00 GLP
Gender: Guy
Location: South Dakota
Operating System: Windows
GIMP Version: 2.9.5
x 169
United States of America

Post#11 by animicule » 12 Oct 2017, 20:07


It's tough to keep them on track... here is about all I can get out of one of them

pdb.RAHHHhh! BRAINS Graagh Brnhr
0 x




User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 10/18
Posts: 2162
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,946.37 GLP
Bank: 51,356.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 1207
x 258
Contact:
Canada

Post#12 by tim » 12 Oct 2017, 20:17


hahahahha ...
0 x



aka Tin
Image gimplearn.net                                              

No avatar
dfkettle
Forum Member
View: Showcase | Slideshow
Topic Posts: 3/18
Posts: 9
Joined: 13 Jan 2018, 20:17
Cash on hand: 195.99 GLP
Gender: Guy
Location: Toronto, ON, Canada
Website: http://www.cuartooscuro.ca
Operating System: Windows
GIMP Version: 2.8.22
x 1
Canada

Post#13 by dfkettle » 13 Jan 2018, 20:26


Thanks for the tutorial. I've just started to play around with Gimp scripts in Python (although I've done some scripting in Python and PIL before). I have a question about the calls to gimp_context_push() and gimp_context_pull(). The documentation in the PDB browser doesn't say exactly what information is saved (or in other words, what is included in "context"). I would have thought that the current foreground and background colours would be saved, but in my testing, that doesn't seem to be the case. Do you know what is meant by "context", or where that might be documented? Thanks.
0 x




User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 10/18
Posts: 2162
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,946.37 GLP
Bank: 51,356.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 1207
x 258
Contact:
Canada

Post#14 by tim » 13 Jan 2018, 21:39


it's gimp_context_push() and gimp_context_pop() and yeah the foreground background colors would be saved.
Anything the you can see as a setting is saved I think..including brush settings.
that's why i use gimp_context_push() and pop() often. so that if my script changes something it doesn't surprise the user.
0 x



aka Tin
Image gimplearn.net                                              

Post Reply

Last 20 Members Who Visited This Topic

dfkettle (27), User avatar RJKD (21), taylor21 (1), User avatar leopardo-40 (1), User avatar gnerd (3), User avatar tim (49), User avatar animicule (4), User avatar Pat625 (4)

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

Who is online

Users browsing this forum: No registered users and 1 guest