[Gimp-developer] Problem returning ARRAYs in plugins
Kevin Cozens
kevin at ve3syb.ca
Sat Nov 17 22:21:59 PST 2007
Laurent G. wrote:
> I have been fighting the evening long, trying to give data through such
> an array.
[snip]
> I followed the "trick" of inserting an int32 before the array in args,
> but I keep getting my plugin to explode gimp on my calling to my simple
> procedure, at least while calling from python console. I can not figure
> out where I made the first mistake. So if I could compare my code with a
> working one, I could detect my error(s).
It would be better if you could post your script somewhere so it can be looked
at. It should not be possible for a script or plug-in to "explode GIMP". If
your script is able to do that, having the script available for review will
allow the problem to be fixed so that other scripts won't be able to break GIMP.
If you are passing an array to GIMP the argument right before you pass the
array is used to tell GIMP the number of items in the array. It is assumed
that the array contains at least that number of items in it. If you are
telling GIMP that the array has 10 items in it (for example) but you have not
put at least 10 items in to the array before passing it to GIMP you are going
to run in to problems.
--
Cheers!
Kevin.
http://www.ve3syb.ca/ |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172 |"Same thing we always do, Pinkutus:
| Try to assimilate the world!"
#include <disclaimer/favourite> | -Pinkutus & the Borg
More information about the Gimp-developer
mailing list