On 19 Jun., 15:55, Yuval Levy <[email protected]> wrote:

>   File "/usr/local/share/hugin/data/plugins/crop_cp.py", line 184, in entry
>     import wx

Much more helpful indeed. that's the bit where wxPython is imported -
crop_cp is the only plugin so far that tries to use wxpython, and I
let it fail trying to import wx rather than behave in a default
fashion. So the termination with  'ImportError: "No module named wx" '
is deliberate. Of course it could be more verbose. It's easy to switch
off this behaviour and the use of wxPython altogether, but I thought
it a good idea to leave one plugin that tries to use wxPython to see
where this does work and where it doesn't.

> > I've slightly modified hpi.py's facility to run plugins without hugin
> > being active.

> OK, so how will it behave when hugin internals (as opposed to panorama model
> internals) will be exposed?  E.g. if a plugin will try to access the two
> images currently selected in the CP tab?)

In that case I suppose it wouldn't work. But then, these entities
aren't wrapped with SWIG yet, and therefore they can only be passed to
the plugin as parameters of some standard type (once parameter passing
is implemented)

Take the capability of hpi.py to run plugins without hugin as an added
bonus for now, don't rely on it, and if it turns out problematic it
can just as easily be thrown out. Not really a feature, and we can
just not mention it - or should I take it out? No big deal, either
way. You know how it goes when programming: some feature says 'hey,
twenty more lines and you've implemented ME as well', so you go 'heck,
why not'.

> > I've added two skeleton plugins which do nothing
>
> skeleton or ghosts?  I did not find any trace of them in the patch.

sorry, I forgot to issue 'hg add' before 'hg commit'. Here's a new
patch with the three plugins - one of them, shooting_pattern.py, is
the one which was called demo_plugin.py previously. I noticed that the
installation routine only adds new stuff but doesn't seem to remove
old stuff, so you may have to get rid of demo_plugin.py manually.

http://bazaar.launchpad.net/~kfj/+junk/script/view/head:/main/patch5327

Kay

-- 
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

Reply via email to