--- On Mon, 11/1/10, Dan Eicher <d...@trollwerks.org> wrote:
> From: Dan Eicher <d...@trollwerks.org> > Subject: [Bf-committers] Python Event Listeners and Notifiers > To: "bf-blender developers" <bf-committers@blender.org> > Received: Monday, November 1, 2010, 11:38 PM > Been poking at this for a couple days > and figured I'd post it to the ML > before I spent too much time on it. > > Registration (non-automagic) works like operators, menus > and KeyingSetInfo > (which I didn't even know existed). There's some simple > logic and an > optional poll function to determine if execute() should be > called > in response to an event. > > The WIP patch -- http://www.pasteall.org/16578/diff If you want it to work like operators, add something like this to bpy_types.py class Listener(StructRNA, metaclass=RNAMeta): __slots__ = () Martin _______________________________________________ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers