On Friday, March 11, 2011 12:56:41 AM UTC+1, Bruno Postle wrote: > > On Thu 10-Mar-2011 at 07:58 -0800, kfj wrote: > > > > The groundworks for a plugin interface for hugin is laid. The > > interface at the software level is deliberately unstructured - > > meaning that any number of hugin objects of arbitrary types can be > > passed to a plugin. But the GUI currently doesn't make use of this > > power; it merely allows to 'call a Python script' and passes just > > a single parameter - the currently active panorama. While this can > > already be useful, it is obviously very limited. > > > Just as the CPGs and the other collateral software can be > > parametrized and can feed back this needs to be possible for > > plugins as well. > > I think the solution is obvious: plugins that don't require input or > provide output can work as they do currently. Any other plugins > need to use wxPython to provide a GUI. > What about mimicking the way Mathmap (the Gimp plugin) interacts with the user? In other words, have the plugin report what parameters it expect (name, type, min/max or list of possible values, default value), and display an options dialogue based on that info. When plugins report a display name and a short description as well, this can also be shown in this dialogue. If the plugin does not report any options, it can be run directly without asking anything. Note that this needn't be restricted to Python plugins.
This approach will also help keeping the GUI consistent as every plugin will show the same kind of interface (except for the options of course). Also, it would allows for "presets", using predefined values for the options to run the plugin (much like the command line options fed to the CPGs). Eventually this could even be used to "integrate" plugins in the default hugin interface (e.g. as a dockable window). -- Bart -- You received this message because you are subscribed to the Google Groups "Hugin and other free panoramic software" group. A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/hugin-ptx
