It is currently Wed Nov 22, 2017 11:43 am


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Script help
PostPosted: Mon Sep 11, 2017 8:43 am  (#1) 
Offline
New Member

Joined: Sep 11, 2017
Posts: 2
Hi

I'm new to using GIMP. I need to add several empty layers to a large batch of images. Previously I've just been doing it manually one image at a time via Layer>New Layer but is there a way to do this to a whole folder of images in one go? I did have a google around but I couldn't find anything useful as far as I could tell.

Many thanks for any help.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Script help
PostPosted: Mon Sep 11, 2017 9:34 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 06, 2017
Posts: 182
Location: UK.
Click on the small icon (looks like a small square on top of another square) under the Layers tab, this will duplicate the selected layer, click it as many times in succession to get the required number of duplicates.


Top
 Post subject: Re: Script help
PostPosted: Mon Sep 11, 2017 9:57 am  (#3) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 3693
If the layers are empty what is the purpose of adding them with a script?

Besides Zero01's suggestion, if all images are the same size, you can make an image with only a bunch of empty layers, save it as XCF, and then in your images use File>Open as layers, select the prepared image and have Gimp add all its layers to your current image.

_________________
Image


Top
 Post subject: Re: Script help
PostPosted: Mon Sep 11, 2017 10:08 am  (#4) 
Offline
New Member

Joined: Sep 11, 2017
Posts: 2
Hi

Thanks for the replies. I need to do stuff to the layers after but seein as I'm working on a large number of images just being able to automatically add the layers to a whole folder of images would save me hours of work (there are hundreds of images). I've read about batch mode for GIMP, is it possible to add layers via this? Or some other method?


Top
 Post subject: Re: Script help
PostPosted: Wed Sep 20, 2017 2:53 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 180
Location: Scandinavia
With AnimStack you can easily add as many empty frames you want.
Install latest version of Animstack: http://registry.gimp.org/node/26501
Drop the scm to your scripts folder and go to menu/filters/script-fu/refresh scripts, or restart Gimp.

Open your image, create one empty layer.
Right click the layer in layers toolbox and select : edit layer attributes. type [*100] after the layer name, hit enter. (for 100 frames).

Image

Go to Filters/Animation/Process animstack tags. 100 layer copies will be created.

There's also a python plugin called "new transparent image sized layer", to create transparent layers faster using a key-combo.
The normal way ctrl+shift+N brings a pop-up window and you need to confirm.
Made by Tin, more info and download in his forum:
https://www.gimplearn.net/viewtopic.php?f=3&t=444


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Guides to Path (scheme script, now python script more advanced).

28

No new posts Script and Plugin Menu Placement Points for script-fu and python-fu

8

No new posts Attachment(s) Add Guides In Range (.py script). Super simple script

2

No new posts Attachment(s) Help for expanding a script (Glass Frame Effect Script)

9

No new posts Attachment(s) Batch Script for custom Script?

15



* Login  



Powered by phpBB3 © phpBB Group