[Gimp-developer] Gimp Arrays in Perl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



First of all, just wanna thank you guys especially Chris, Branko, Marc and
Dov for answering some of my questions the past 2 days. Your help is greatly
appreciated.

Anyway, my question regards the gimp_pencil tool. One of its parameters
is an array of floats. I tried to pass in this by doing

//just imagine all variables contain integers
#1.

	@positions = (0, $startPos, $width, $startPos);
	gimp_pencil($layer, 4, @positions );



#2.

	gimp_pencil($layer, 4,  (0, $startPos, $width, $startPos) );


Everytime I try to run this script, Gimp pops me a message and says:

perl-arrayref required as datatype for a gimp array at blahdirectory then
line number (ERROR)

Anyone knows how do I fix this?

Thanks all!

Kenny


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux