[Bf-committers] Findnearest* python problesm
joeedh
joeeagar at prodigy.net
Sun Dec 12 04:35:07 CET 2004
Anyone? I know this isn't exactly an approved project, but it is on the
pyhon todo list, so a little help would be nice.
joeedh wrote:
> Hi. I've hit a little snag in the development of EMesh: The
> findnearest* functions do not work when the event queue has been
> grabbed by python (aka a Window.QRead loop). BTW, for those of you
> who don't know, findnearestvert/edge/face are the functions used to
> get the current vert/edge/face that is under the mouse cursor (so it
> can be selected). I tried calling backdrawview3d(), but that didn't
> help.
>
> I can't seem to figure this out. This is espesially important, since
> these functions are what make EMesh worth it in the first place
> (that's the whole point of it, to allow rapid prototyping of new mesh
> editing tools).
>
> *sigh* The event system. . .you know, when I was writing BPyGUI, I
> followed this philosiphy:
> NOTHING has direct access to the event queue. I actually wrote it so
> a UI element can have a "evt_grabbed" attribute (and made it so this
> would trigger the element's parent Container's evt_grabbed attribute,
> until it hit the top of the hiearchy of Containers, I designed
> everything to work on this principle) but I think that maybe a event
> grab stack would work better. . .
>
> Yes. . .like maybe push a function pointer onto the stack, that might
> work especially well. . .hm.. . .
>
> joeedh
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
>
More information about the Bf-committers
mailing list