[Gimp-user] Python-fu : how to remove layers ?
- From: chaouche yacine <yacinechaouche yahoo com>
- To: gimp-user-list gnome org
- Subject: [Gimp-user] Python-fu : how to remove layers ?
- Date: Mon, 31 Dec 2012 03:54:25 -0800 (PST)
Hello. I have a gif animation that has 190 layers. It's a too much. I want to remove one out of three layers
via the python-fu console. Here's what I did :
image = gimp.image_list()[0]
image.layers = [layer for (index,layer) in enumerate(image.layers) if index % 3]
Traceback (most recent call last):
File "<input>", line 1, in <module>
AttributeError: attribute 'layers' of 'gimp.Image' objects is not writable
What is the correct way of removing layers ?
Thanks for you help in advance.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]