4 hours ago
(Yesterday, 11:03 AM)Scallact Wrote: For your question, is your aim to be able to select the path from the plugin dialog, or to be able to call the plugin from another while passing the path?
I'm trying to mimic the unified approach the old scripts exhibit. Both the original and tmanni's 2.99 version register the input path as another variable to the run procedure where it is seemingly picked up regardless of whether it has been selected interactively or if it was included in a call from some other script. On an interactive run I suppose a path (or vector) argument was automatically initialized, bypassed the dialog and was sent straight to the run function.
There is a new "procedure.add_path_argument(...)" API function which I suspect is meant to do precisely this but I can't get it to work so I must be missing something. Maybe I need to have a closer look at the fine print on "Gimp.ImageProcedure" vs "Gimp.Procedure".
