nelo
1
How do I add a new layer group in GIMP 2.99?
Something to replace the old
Gimp.group_layer_new(image)
from GIMP 2.10.x
I’ve found this in the procedure browser:
procedure = Gimp.get_pdb().lookup_procedure('gimp-group-layer-new')
config = procedure.create_config()
config.set_property('image', image)
result = procedure.run(config)
success = result.index(0)
my_group = result.index(1)
Is that the only way?
Ofnuts
2
Not a big experience of Python3 in Gimp but this seems very long-winded. Do you import the glib stuff (gi.*
)?
nelo
3
Yes.
I thought there must be something like
Gimp.Group_layer_new()
or so. But couldn’t find anything that works apart from what I found in the procedure browser.
nelo
4
Finally found something that works.
my_new_layergroup = Gimp.GroupLayer.new(image)
seems to work.
system
(system)
Closed
5
This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.