Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
linking a image with its mask
#3
I don't understand your code:

Code:
(gimp-layer-new Image ImgW ImgH RGB-IMAGE MaskLayer 0 LAYER-MODE-NORMAL)
(gimp-file-load-layer RUN-NONINTERACTIVE Image Mask)
(gimp-image-set-active-layer Image MaskLayer)

I looks like you are expecting gimp-file-load-layer to "fill" MaskLayer. In any case, gimp-file-load-layer creates a new layer and returns it, so if you don't set a variable with whatever is returned from gimp-file-load-layer you will  have trouble accessing the loaded layer.

Also, in Gimp 2.10, instead of using a mask, it could be simpler to use a layer in Erase blend mode.
Reply


Messages In This Thread
linking a image with its mask - by reena - 05-26-2022, 10:34 AM
RE: linking a image with its mask - by rich2005 - 05-26-2022, 11:37 AM
RE: linking a image with its mask - by Ofnuts - 05-26-2022, 10:16 PM
RE: linking a image with its mask - by reena - 05-27-2022, 07:52 AM
RE: linking a image with its mask - by Ofnuts - 05-27-2022, 01:55 PM
RE: linking a image with its mask - by rich2005 - 05-27-2022, 03:48 PM
RE: linking a image with its mask - by reena - 05-31-2022, 08:21 AM
RE: linking a image with its mask - by tmanni - 05-27-2022, 10:20 PM
RE: linking a image with its mask - by rich2005 - 05-31-2022, 11:16 AM
RE: linking a image with its mask - by reena - 06-01-2022, 11:02 AM
RE: linking a image with its mask - by reena - 06-02-2022, 02:25 PM
RE: linking a image with its mask - by rich2005 - 06-02-2022, 03:22 PM
RE: linking a image with its mask - by reena - 06-03-2022, 05:05 AM

Forum Jump: