11-21-2024, 12:47 PM
run_data is technically a pointer to anything that you want your procedure to access. This is passed to the procedure code as the last "data" parameter. And bizarrely if you omit it when creating the procedure, it is not used in the call to your procedure.
Otherwise, wink, wink, nudge nudge.
Ofnuts....thank you so much for your quick reply!
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 ...
Otherwise, wink, wink, nudge nudge.
Ofnuts....thank you so much for your quick reply!
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 ...