11-21-2024, 09:24 PM
(11-21-2024, 12:47 PM)JustJamie Wrote: Ok...
I believe I would do this in the do_create_procedure function with the following line of code:
procedure = Gimp.ImageProcedure.new(self, name, Gimp.PDBProcType.PLUGIN,self.run,None)
The last argument (None) is the 'run-data' of type gpointer that gets passed to the run function. I haven't found much information about the gpointer type in the Gimp or GimpUi documentation ...
Yes. GPointer is a C thing, it is a pointer to anything. I don't see much use for this in the average Python plugin.