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

    LoadDialog

    SDK Help
    0
    3
    282
    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 24/01/2013 at 11:51, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:      
      Language(s) :

      ---------
      I feel so dumb. The Python API has the c4d.storage.LoadDialog() function. What can I use in C++
      to show a dialog for selecting a file on the HD?

      Thanks,
      Niklas

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

        On 24/01/2013 at 11:55, xxxxxxxx wrote:

        Try this:

        Filename file; // Assigns a variable to the filename class  
        Filename dir = GeGetC4DPath(C4D_PATH_DESKTOP); //Opens file browser starting at the desktop  
        file.SetDirectory(dir);  
        file.FileSelect(FILESELECTTYPE_SCENES, FILESELECT_LOAD, "Dialog Window Text Here");  
        LoadFile(file);
        

        -ScottA

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

          On 24/01/2013 at 12:14, xxxxxxxx wrote:

          This, Sir, is exactly what I was searching for. 🍺

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