It is currently 21 May 2022, 06:54
| ||||
| ||||
|
|

Python - 2 questions

- n3306tx
-
59th Place
- 15 Post(s)
Python - 2 questions
1. Is there a Python command to "disable" a layer mask (as if holding CTRL key and clicking mask)?
2. Where can I find a good GIMP python reference with all the commands?
Thanks for any help.
2. Where can I find a good GIMP python reference with all the commands?
Thanks for any help.
Last edited by n3306tx on 03 Jul 2021, 00:02, edited 2 times in total.
GIMP Learn rocks...
-
tim
-
1st Place
- 5822 Post(s)
- View:
|Posts
- Topic Posts: 0/8 | Posts: 5822
- Joined: 26 Sep 2016, 00:16
- Cash on hand: 86,484.96 GLP
- Bank: 6,254,306,164.00 GLP
- Gender: Guy
- Location: Canada
- GIMP Version: 2.10.X
- Paint Blotches blog
- Play them songs blog
- Personal Blog
- x 3357
- x 1369
- Contact:
On the forum, there's no delete post option for historical information purposes.
1. I don't see a command for disabling layer mask. It seems you can only apply or/and remove layer mask. GIMP python fu usually don't provide front end interface commands but only commands that has effect so I guess that's why disabling mask isn't there because it's more of a front end for user to work with and all other mask operations seem to be there.
2. I just use GIMP -> Help -> Procedure browser and search for a keyword...for example "mask" and all commands that has mask it in will appear. That seems good enough for me to find possible commands. Then just replace the - (hyphens) in commands with _ (underscores) and add pdb. in front and you've got your Python fu commands. And the parameters are there, just ignore the RUN MODE parameter if there is one.
1. I don't see a command for disabling layer mask. It seems you can only apply or/and remove layer mask. GIMP python fu usually don't provide front end interface commands but only commands that has effect so I guess that's why disabling mask isn't there because it's more of a front end for user to work with and all other mask operations seem to be there.
2. I just use GIMP -> Help -> Procedure browser and search for a keyword...for example "mask" and all commands that has mask it in will appear. That seems good enough for me to find possible commands. Then just replace the - (hyphens) in commands with _ (underscores) and add pdb. in front and you've got your Python fu commands. And the parameters are there, just ignore the RUN MODE parameter if there is one.
-
tim
-
1st Place
- 5822 Post(s)
- View:
|Posts
- Topic Posts: 0/8 | Posts: 5822
- Joined: 26 Sep 2016, 00:16
- Cash on hand: 86,484.96 GLP
- Bank: 6,254,306,164.00 GLP
- Gender: Guy
- Location: Canada
- GIMP Version: 2.10.X
- Paint Blotches blog
- Play them songs blog
- Personal Blog
- x 3357
- x 1369
- Contact:
gimp-layer-set-apply-mask doesn't seem to do anything when i run it.
- n3306tx
-
59th Place
- 15 Post(s)
Tim, thanks for the reply and answers. Makes sense about the layer mask option. Basically I just wanted to make a group mask, but have it disabled to start with. I can workaround it by just making a white mask on the group.
Mike
GIMP Learn rocks...
- n3306tx
-
59th Place
- 15 Post(s)
Thanks for the reply. I was trying to create a group mask, but have it start out in disabled mode (red square around it). I can work around it by simply having a white mask so all the group layers show through basically getting the same result. I'm really new at coding python in Gimp, but I can see the power in it automating repetitive tasks.
GIMP Learn rocks...
-
tim
-
1st Place
- 5822 Post(s)
- View:
|Posts
- Topic Posts: 0/8 | Posts: 5822
- Joined: 26 Sep 2016, 00:16
- Cash on hand: 86,484.96 GLP
- Bank: 6,254,306,164.00 GLP
- Gender: Guy
- Location: Canada
- GIMP Version: 2.10.X
- Paint Blotches blog
- Play them songs blog
- Personal Blog
- x 3357
- x 1369
- Contact:
I must of ran the wrong script by mistake and so didn't notice anything.
It works for me now too.

It works for me now too.
| ||||
| ||||
|
-
- Similar Topics
- Replies
- Views
- Last post
-
- 0 Replies
- 380 Views
-
Last post by tim
23 Jan 2022, 16:53
-
-
Few questions I wanted to ask long ago about GL
by PixLab » 01 Apr 2022, 06:51 » in GIMP/GL Questions - 7 Replies
- 547 Views
-
Last post by PixLab
05 Apr 2022, 01:45
-
-
-
Trouble adding white mask to layer group with python code
by n3306tx » 15 Jun 2021, 00:22 » in GIMP/GL Questions - 3 Replies
- 2929 Views
-
Last post by n3306tx
03 Jul 2021, 00:06
-
-
- 1 Replies
- 1721 Views
-
Last post by tim
27 Jun 2021, 21:14
-
- 3 Replies
- 1291 Views
-
Last post by david
15 Oct 2021, 17:32
-
- 0 Replies
- 273 Views
-
Last post by gielen
24 Mar 2022, 10:49
Who is online
Users browsing this forum: No registered users and 2 guests