← All ideas
  • Published 13 Jan 2023

Add Drag Event in Context.

For people to be able to implement their own scripts to import drag drop files.

"Code" example:

if bpy.context.window_manager.drags:

for filepath in bpy.context.window_manager.drags:
      bpy.ops.import_scene.fbx(filepath = filepath)
      bpy.ops.import_scene.obj(filepath = filepath)
      bpy.ops.import_scene.gltf(filepath = filepath)
      # import images, other
100%

Development Status: Open

Upvote 3 Downvote 0
v.imran2018
13 Jan 2023

0 Comments