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

2012-05-30 Thread Dan Eicher
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,

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

2012-05-30 Thread Campbell Barton
Currently this isnt possible. AFAIK this isnt trivial to add - though to be sure of this I would need to attempt to add it and see what problems come up. When a region is initialized drop-boxes are defines but this happens in C so we would need to add a way for the C code to call out to python fu

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

2012-05-30 Thread Julien Duroure
Hi, Nobody to help me resolving my problem ? Will take my chance on IRC if not ;-) Regards, On Mon, May 28, 2012 at 10:07 AM, Julien Duroure wrote: > Hi all, > > I am currently trying to add a new dropbox for drag&drop action. > I have define a new python operator, but at blender launching, exe

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

2012-05-28 Thread Julien Duroure
Hi all, I am currently trying to add a new dropbox for drag&drop action. I have define a new python operator, but at blender launching, executing WM_dropbox_add, I have the following error : search for unknown operator 'VIEW3D_OT_add_image_texture_brush', > 'view3d.add_image_texture_brush' > Erro