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,
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
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,
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,