Re: [Gimp-developer] How to create a GimpFloatArray in Python plugin?

2020-02-19 Thread Ofnuts
On 2/19/20 9:17 PM, Lloyd Konneker via gimp-developer-list wrote: Specifically, to pass as third arg to Gimp.PDB.gimp_pencil(layer, 4 line). Said argument should be GimpFloatArray according to PDBBrowser. I create a GimpValueArray to pass args to the pdb. To create a GValue for the third arg,

[Gimp-developer] How to create a GimpFloatArray in Python plugin?

2020-02-19 Thread Lloyd Konneker via gimp-developer-list
Specifically, to pass as third arg to Gimp.PDB.gimp_pencil(layer, 4 line). Said argument should be GimpFloatArray according to PDBBrowser. I create a GimpValueArray to pass args to the pdb. To create a GValue for the third arg, I tried: GObject.Value(Gimp.FloatArray.__gtype__, (1.0, 1.0, 1.0,