This example contains an implementation of the siOnDragAndDrop2 event. It will duplicate a 3D Object that is dragged from a Scene Explorer view to a viewport, and move the new object around based on the mouse location in the viewport 3D space.
To run the example
From a Scene Explorer view, use the mouse left button to drag a 3D object over any of the 4 viewports. When entering the viewport, the dragged object will be duplicated and the mouse will move the new copy around in 3D space. Using Ctrl, Alt and Shift will change the look of the mouse icon while dragging the object.
This example uses the following keywords:
Python example, siEventID, siOnDragAndDrop2, self-installed plug-in, RegisterEvent,