Skip to main content
deleted 43 characters in body; edited tags; edited title
Source Link
Cai
  • 40.8k
  • 11
  • 80
  • 171

how to add channell How to mask a layer from a channel in GIMP with pythonPython?

¡Help! I've been 3 days searching for documentation about python-fu for GimpGIMP 2.8, and the one I find is great, but deprecated.

So imI'm now stuckedstuck at this place: I've created 3 color channels, and want to add each one of them as a mask to each of 3 layers.

What I've done till now: (manually load the image, and create 3 color channels for lights, middle tones and shadows),;

getGet it's idID, with:

ima = gimp.image_list()[0]

getGet the layer idID and duplicate the layer 3 times:

layn = pdb.gimp_layer_new_from_visible(ima, ima, 'dup')
pdb.gimp_image_insert_layer(ima, layn, None, -1) 

Now I have an image with three layers and want to add a layer mask to each of the 3 layers but from the 3 different color channels .... but iI don't know how. If you are so kind and help me.

how to add channell to layer with python?

¡Help! I've been 3 days searching for documentation about python-fu for Gimp 2.8, and the one I find is great, but deprecated.

So im now stucked at this place: I've created 3 color channels, and want to add each one of them as a mask to each of 3 layers.

What I've done till now: (manually load the image, and create 3 color channels for lights, middle tones and shadows),

get it's id, with:

ima = gimp.image_list()[0]

get the layer id and duplicate the layer 3 times:

layn = pdb.gimp_layer_new_from_visible(ima, ima, 'dup')
pdb.gimp_image_insert_layer(ima, layn, None, -1) 

Now I have an image with three layers and want to add a layer mask to each of the 3 layers but from the 3 different color channels .... but i don't know how. If you are so kind and help me.

How to mask a layer from a channel in GIMP with Python?

I've been 3 days searching for documentation about python-fu for GIMP 2.8, and the one I find is great, but deprecated.

So I'm now stuck at this place: I've created 3 color channels, and want to add each one of them as a mask to each of 3 layers.

What I've done till now: (manually load the image, and create 3 color channels for lights, middle tones and shadows);

Get it's ID, with:

ima = gimp.image_list()[0]

Get the layer ID and duplicate the layer 3 times:

layn = pdb.gimp_layer_new_from_visible(ima, ima, 'dup')
pdb.gimp_image_insert_layer(ima, layn, None, -1) 

Now I have an image with three layers and want to add a layer mask to each of the 3 layers but from the 3 different color channels... but I don't know how.

Source Link

how to add channell to layer with python?

¡Help! I've been 3 days searching for documentation about python-fu for Gimp 2.8, and the one I find is great, but deprecated.

So im now stucked at this place: I've created 3 color channels, and want to add each one of them as a mask to each of 3 layers.

What I've done till now: (manually load the image, and create 3 color channels for lights, middle tones and shadows),

get it's id, with:

ima = gimp.image_list()[0]

get the layer id and duplicate the layer 3 times:

layn = pdb.gimp_layer_new_from_visible(ima, ima, 'dup')
pdb.gimp_image_insert_layer(ima, layn, None, -1) 

Now I have an image with three layers and want to add a layer mask to each of the 3 layers but from the 3 different color channels .... but i don't know how. If you are so kind and help me.