Copying a layer mask between images

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Copying a layer mask between images

Ofnuts-2
It's easy to copy a layer to another image:

     pdb.gimp_layer_new_from_drawable(sourceLayer,targetImage)

But I cannot find an equivalent call for a Mask/Channel:

     - gimp_create_mask() won't take an existing mask, just an existing
Channel (and since it's another image I cannot even use the selection)

     - gimp_channel_new() creates n empty channel

     - gim_channel_new_from_component() only tales an image component

As far as I can tell the only way would be create an empty mask and
copy/paste? Am I missing something ? Is there a smarter way?


_______________________________________________
gimp-developer-list mailing list
List address:    [hidden email]
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list