12-01-2018, 11:43 AM
(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.