When you drop a blend file onto the viewport you get a menu that allows you to open, append, or link information. I would like to extend this menu with my add-on, but i’m not sure if this is possible.
Instead of calling a menu an operator is called. The operator that is called is located in scripts/startup/bl_operators/wm.py
I have tried to use the append method like you would with a regular menu, but this of course doesn’t work since operators don’t have an append method.
bpy.types.WM_OT_drop_blend_file.append(my_menu)
Anyone know of a way to extend this operator menu.
You can try to register operator with similar name and completely rework how it is works:
Example below dont work as original operator(but invokes on filedrop). Maybe instead calling “wm.link”, “wm.append”, “wm.open_mainfile” operators you will need make another one.