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

2020-02-20 Thread Lloyd Konneker via gimp-developer-list
A small example, also shows the problem, with a slightly different error message: args = Gimp.ValueArray.new(4) args.insert(0, GObject.Value(Gimp.RunMode, Gimp.RunMode.NONINTERACTIVE)) args.insert(1, GObject.Value(Gimp.Drawable.__gtype__, drawable)) args.insert(2,

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

2020-02-20 Thread Lloyd Konneker via gimp-developer-list
Complicated stuff is necessary to implement a new GimpFu, which is what makes it simple to plugin authors. I am not writing a plugin, I am testing old plugins with a new implementation of GimpFu. In the master branch (version 2.99) of gimp repository you will see some python plugins that have

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,