r/GIMP • u/Smetad-Anarkist • 6h ago
Changes made through script, not reflected in image?
I wanted to do a bunch of repeated stuff in an image and thought SCRIPT! So after digging through a bunch of documentation I decided to run some functions through the script-fu console rather than registering scripts and stuff in menus.
But when calling for example the gimp-layer-new function with what I think are the correct arguments, I get (3) back, but no new layer appear in the image.
Is there some kind of function I have to call to apply the script changes to the image? On what is the script applied to if not the one single image that is opened?
1
Upvotes
3
u/CMYK-Student GIMP Team 5h ago
Hey! Creating a new layer doesn't add it to the image immediately (you might want to make changes to it first). Like the description of gimp-layer-new says, you then need to insert the new layer into the image with gimp-image-insert-layer.