dinasset wrote:
to SaulGoode
tried your suggestion, but:
1 - first of all to make the plug-in be accepted I had to add two initial parameters
(PF_IMAGE, "image", "Input image", None),
(PF_DRAWABLE, "drawable", "Input drawable", None),
which normally are not in because defaulted by the interface
(before adding those two additional parameter the call returned an error saying that four parameters where defined but only two registered)
2 - nothing changed with respect to the menu entry, i.e. I still had to clear .gimp-2.8/pluginrc lines related to the plug-in when trying to change MyPyFu to Diego or viceversa
Sorry, but thanks again for the suggestion
(BTW did your suggestion come from the fact that you did try the same and it works by you? in general I'd like to hear from python plug-in writers about such a trial...)
1) You have to declare all the parameters that your plug-in expects... the interface then decides which are implicitly available (active image/layer/drawable/path...), and which warrant an entry in a parameter input dialog. When called non-interactively by another plugin, all parameters should be specified.
2) As far as I can tell, the pluginrc file has a timestamp for each plugin, and if at startup the timestamp of the plugin executable file isn't the same as one in pluginrc, the plugin is run to execute its registration code.