[Bf-committers] Add drag&drop box for python operator

Dan Eicher dan at trollwerks.org
Wed May 30 14:25:04 CEST 2012

A third way would be to add a poll() method to operators that, when
defined, registers a new dropzone type. Plus a bl_poll type to know
into which dropzone list to add it to.

Then would just need to have a generic wrapper function (per dropzone
region type) to call the py-function like; poll(cls, drug_ob,
target_ob) and another generic dropzone_copy() function that copied
the drug & target objects into op["object"] & op["target"] custom
props if poll() returns true...something like that, haven't quite
figured out all the details yet.

Wouldn't be too terribly hard to implement -- one of the main reasons
I've been poking around in the D&D code the last couple days is to
figure out how to get at this stuff from python.


More information about the Bf-committers mailing list