Drag/drop into viewport from a external app

On 14/03/2018 at 02:03, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R17 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
Hi, I want to support drag/drop from other app as we already did in other 3d platforms but to be honest I have no idea where I should start in the case of C4D.

Is there any snipped or somebody could give me a tip about where should I start reading?

Thank you in advance.

On 15/03/2018 at 02:54, xxxxxxxx wrote:

Hi,

I'm afraid this is not directly possible. Drag and drop onto the viewport is handled internally.
You could implement a SceneLoaderData plugin, such gets triggered on drops onto the viewport, but of course is limited to scene data and also a new scene will be created. So probably not a good option.
Otherwise the best we can offer is a GeDialog or a GeUserArea, where you have full control of the drag and drop operation, of course with the drawback that the user needs to target a certain drop area.