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

Julien Duroure julien.duroure at gmail.com
Mon May 28 10:07:18 CEST 2012


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'
> Error: dropbox with unknown operator: view3d.add_image_texture_brush
>

It seems that python operators are not yet registered when executing
dropboxes initializations.
After that, using Python Console autocompletion, my operator is found, are
correctmy exectured, so I know that there is no syntax error on my operator.

All examples, I found in source code, are using C operator. I tried to
create a dummy C operator, and all works fine in this case.
Is there a way to resolve my problem, or is it not possible to execute
python operator when drag&drop ?

Thanks,

Julien


More information about the Bf-committers mailing list