Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Drag/drop into viewport from a external app

    SDK Help
    0
    2
    542
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post