Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trouble following the luminosity mask tutorial.
#8
(12-01-2018, 11:43 AM)Ofnuts Wrote:
(12-01-2018, 09:46 AM)sumppihuuhkaja Wrote: If you do not like so much about manual work, there is now free plugin available: https://sumppihuuhkaja.blogspot.com/2018...lugin.html

Code:
pdb.gimp_edit_copy(tdrawable)
img_HL_L = pdb.gimp_edit_paste(tdrawable, 1)
pdb.gimp_floating_sel_to_layer(img_HL_L)
pdb.gimp_item_set_name(img_HL_L, 'HighLights_Low')

Much faster & simpler to directly copy the layer with gimp_layer_copy() or even the copy() method of the layer.

Ofnuts thanks for the tip. This was my very first Gimp Python project and I found the documentation of interface occasionally  quite terse which affected to the final outcome.  It is not optimal but it does what it is intended to do.
Reply


Messages In This Thread
RE: Trouble following the luminosity mask tutorial. - by sumppihuuhkaja - 12-01-2018, 04:09 PM

Forum Jump: