Hey s0l1dcra5h, I made a simple drag/drop thing in like 5 minutes, so it outputs errors, but it works perfect. If you want me to make a tutorial I can, but it may take a few days.
The example files works like this:
q = Spawns Cube
w = Spawns Pyramid
e = Spawns Icosphere
You can only drag and drop the items that come out of the spawn location.
This will work with any object that as the property drag. Also the property drag must equal 1 if you want it to be able to be dragged or dropped.
NOTE: Make sure when using the script, you have a camera. This is so it has reference to where the mouse is, if you are just looking at a screen, the computer can’t tell where you are in the 3D world.
Also, you need to have something under all the objects. A space object. This object just needs to be there so you can drag objects in empty space. Blender needs a reference to where the mouse ray is hitting. Without it doesn’t work fully.
Here is the .blend:
click_drag_ex.blend (576 KB)