Posts: 2
Threads: 1
Joined: Aug 2017
Reputation:
0
Operating system(s):
i'm using python-fu, i want to copy the filter iwarp i added to one layer to another layer i just added to the document.
my code:
document = gimp.image_list()[0]
layer_with_filter = document.layers[0]
layer_without_filter = document.layers[3]
thanks
Posts: 6,339
Threads: 272
Joined: Oct 2016
Reputation:
562
Operating system(s):
Gimp version: 2.10
You don't "copy a filter"? Either you copy a layer, or you run the filter again, with the same arguments, on the other layer. If your problem is to use IWarp interactively on one filter, and have a script to replay it automatically on some other layer, then it's a whole other problem, AFAIK there is no way to retrieve the arguments of a filter that has been used interactively. And IWarp makes this even harder, since there is no useful way to call it non-interactively.