GIMP Chat http://gimpchat.com/ |
|
wrong parameter type in pdb.plug_in_cubism http://gimpchat.com/viewtopic.php?f=9&t=18310 |
Page 1 of 1 |
Author: | RockLizard [ Wed May 06, 2020 9:43 am ] |
Post subject: | wrong parameter type in pdb.plug_in_cubism |
Hi there, I seem to have a pretty strange problem: a line of code Code: Select all pdb.plug_in_cubism(layer, drawable, 20.5, 5.5, 0) produces an error message which reads Quote: wrong parameter type .he function from the Py-console is Code: Select all pdb.plug_in_cubism(image, drawable, tile_size, tile_saturation, bg_color) And I plain don't understand what am I doing wrong. Could you please help me with ideas? ![]() |
Author: | MareroQ [ Wed May 06, 2020 10:43 am ] |
Post subject: | Re: wrong parameter type in pdb.plug_in_cubism |
Hi RockLizard pdb.plug_in_cubism(layer,image, drawable, 20.5, 5.5, 0) |
Author: | RockLizard [ Thu May 07, 2020 11:05 am ] |
Post subject: | Re: wrong parameter type in pdb.plug_in_cubism |
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) |
Author: | ofnuts [ Thu May 07, 2020 5:46 pm ] |
Post subject: | Re: wrong parameter type in pdb.plug_in_cubism |
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) Most things you do "by hand" in Gimp only affect a layer and not the whole image..... |
Author: | RockLizard [ Sat May 09, 2020 10:26 am ] |
Post subject: | Re: wrong parameter type in pdb.plug_in_cubism |
ofnuts wrote: Most things you do "by hand" in Gimp only affect a layer and not the whole image..... 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( |
Author: | Pocholo [ Sat May 09, 2020 11:46 am ] |
Post subject: | Re: wrong parameter type in pdb.plug_in_cubism |
If you have Windows OS, have you tried "BIMP"? it integrate with GIMP. https://alessandrofrancesconi.it/projects/bimp/ |
Author: | rich2005 [ Sat May 09, 2020 1:01 pm ] |
Post subject: | Re: wrong parameter type in pdb.plug_in_cubism |
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: Select all #!/usr/bin/env python ...and do not ask me, I am no coder ![]() |
Author: | ofnuts [ Sat May 09, 2020 3:19 pm ] |
Post subject: | Re: wrong parameter type in pdb.plug_in_cubism |
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: Select all #!/usr/bin/env python ...and do not ask me, I am no coder ![]() Good try, but "image = gimp.image_list()[0]" retrieves one image among the ones that are open, and that may not be the active one, so as written the script is quite dangerous... In fact the first argument of your function (the one you call "layer") is the image you are working on and not a layer, so you code could start with: Code: Select all #!/usr/bin/env python |
Author: | RockLizard [ Sun May 10, 2020 3:14 am ] |
Post subject: | Re: wrong parameter type in pdb.plug_in_cubism |
![]() 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: Select all #!/usr/bin/env python ...and do not ask me, I am no coder ![]() |
Author: | RockLizard [ Sun May 10, 2020 3:15 am ] |
Post subject: | Re: wrong parameter type in pdb.plug_in_cubism |
Pocholo wrote: If you have Windows OS, have you tried "BIMP"? it integrate with GIMP. https://alessandrofrancesconi.it/projects/bimp/ Works perfect for the task (with some corrections). Thank you! |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |