It is currently 07 May 2021, 03:39

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Run Code on Visible Layers Script for GIMP

Share your Python Fu Scripts/plug-ins for GIMP here
Pat625
Tutorial Creator

Re: Run Code on Visible Layers Script for GIMP

Post#11 by Pat625 » 20 Nov 2020, 14:44


Tin,
If there is only one item or letter on each layer with the rest of the layer transparent, must a selection be made? Or use lock pixels? (I do not know what I am talking about, do I?)

I plan on starting with fonts to change the font color. :hammer_head:

tim
GL Blogger

Post#12 by tim » 20 Nov 2020, 18:08


@Pat625 ,
Okay so you want to select each layer's "Alpha to selection" that's doable in script. here it is

Code: Select all

pdb.gimp_image_select_item(image,CHANNEL_OP_REPLACE,layer);pdb.gimp_context_set_foreground((128,128,128));pdb.gimp_edit_fill(layer,FOREGROUND_FILL);
aka Tin

         

tim
GL Blogger

Post#13 by tim » 20 Nov 2020, 18:14


Or this version doesn't create artifacts around the outlines

Code: Select all

pdb.gimp_selection_all(image);pdb.gimp_layer_set_lock_alpha(layer,TRUE);
pdb.gimp_context_set_foreground((128,128,128));pdb.gimp_edit_fill(layer,FOREGROUND_FILL);pdb.gimp_layer_set_lock_alpha(layer,FALSE);
aka Tin

         

Diagramjamal
Newly Registered

Post#14 by Diagramjamal » 17 Dec 2020, 13:24


That is really nice
diagram :gimp: jamal

RowDogSA
Newly Registered

Post#15 by RowDogSA » 05 Mar 2021, 07:56


I'd love to use this but it doesn't work in 2.10.20. I have placed the py file in the plugins folder which is specified in preferences and when I restart Gimp it does not appear in the menu. Any help will be appreciated.
GIMP Learn rocks...

gimpturkey
Newly Registered

Post#16 by gimpturkey » 05 Mar 2021, 08:21


Diagramjamal wrote:
17 Dec 2020, 13:24
That is really nice
hey this was my nickname diagramjamal. i'm not the one who wrote this.
GIMP Learn rocks...

tim
GL Blogger

Post#17 by tim » 05 Mar 2021, 12:21


maybe it's just someone else with the same name
aka Tin

         

gimpturkey
Newly Registered

Post#18 by gimpturkey » 05 Mar 2021, 20:38


tim wrote:
05 Mar 2021, 12:21
maybe it's just someone else with the same name
okay what you say :gaah:
GIMP Learn rocks...


GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply New Topic
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 24 guests