Wed May 06, 2020 9:43 am
pdb.plug_in_cubism(layer, drawable, 20.5, 5.5, 0)
.wrong parameter type
pdb.plug_in_cubism(image, drawable, tile_size, tile_saturation, bg_color)
Wed May 06, 2020 10:43 am
Thu May 07, 2020 11:05 am
MareroQ wrote:Hi RockLizard
pdb.plug_in_cubism(layer,image, drawable, 20.5, 5.5, 0)
Thu May 07, 2020 5:46 pm
RockLizard wrote:Ow, thanks a million. This works. But somehow it affects only a layer. This is why I got confused in the first place... Should go and learn more about image and layer concepts...MareroQ wrote:Hi RockLizard
pdb.plug_in_cubism(layer,image, drawable, 20.5, 5.5, 0)
Sat May 09, 2020 10:26 am
ofnuts wrote:Most things you do "by hand" in Gimp only affect a layer and not the whole image.....
Sat May 09, 2020 11:46 am
Sat May 09, 2020 1:01 pm
RockLizard wrote:I am lost again. Is there a way to apply "manual" operation to every layer/batch of files, except external script calling GIMP for every image? I tried changing layers order and assigning new active layer and it did not work(
#!/usr/bin/env python
from gimpfu import *
def testing (layer, drawable ):
image = gimp.image_list()[0]
for layer in image.layers:
pdb.plug_in_cubism(image, layer, 20.5, 5.5, 0)
register(
"python_fu_testing",
" ",
" ",
"",
" ",
"2020",
"<Image>/Tools/testing",
"*",
[],
[],
testing,
)
main()
Sat May 09, 2020 3:19 pm
rich2005 wrote:RockLizard wrote:I am lost again. Is there a way to apply "manual" operation to every layer/batch of files, except external script calling GIMP for every image? I tried changing layers order and assigning new active layer and it did not work(
BIMP works very well for individual images, use "other gimp procedure"
For a single image and a stack of layers, this a skeleton for you to improve on.
- Code:
#!/usr/bin/env python
from gimpfu import *
def testing (layer, drawable ):
image = gimp.image_list()[0]
for layer in image.layers:
pdb.plug_in_cubism(image, layer, 20.5, 5.5, 0)
register(
"python_fu_testing",
" ",
" ",
"",
" ",
"2020",
"<Image>/Tools/testing",
"*",
[],
[],
testing,
)
main()
...and do not ask me, I am no coder
#!/usr/bin/env python
from gimpfu import *
def testing (image, drawable ):
for layer in image.layers:
pdb.plug_in_cubism(image, layer, 20.5, 5.5, 0)
Sun May 10, 2020 3:14 am
rich2005 wrote:RockLizard wrote:I am lost again. Is there a way to apply "manual" operation to every layer/batch of files, except external script calling GIMP for every image? I tried changing layers order and assigning new active layer and it did not work(
BIMP works very well for individual images, use "other gimp procedure"
For a single image and a stack of layers, this a skeleton for you to improve on.
- Code:
#!/usr/bin/env python
from gimpfu import *
def testing (layer, drawable ):
image = gimp.image_list()[0]
for layer in image.layers:
pdb.plug_in_cubism(image, layer, 20.5, 5.5, 0)
register(
"python_fu_testing",
" ",
" ",
"",
" ",
"2020",
"<Image>/Tools/testing",
"*",
[],
[],
testing,
)
main()
...and do not ask me, I am no coder
Sun May 10, 2020 3:15 am
Pocholo wrote:If you have Windows OS, have you tried "BIMP"? it integrate with GIMP.
https://alessandrofrancesconi.it/projects/bimp/