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

    SDKBrowser Control

    SDK Help
    0
    3
    326
    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 12/05/2017 at 16:16, xxxxxxxx wrote:

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

      ---------
      Hi,

      I'm working on a plugin that opens a Content Browser window pointing to a path that I provide. The code I've written for this portion works correctly but I need to have this path change if the user clicks different options in my plugin. Is it possible to change the path for the browser window after its been opened just using C++ code?

      This is my code for opening the browser.

        
      SDKBrowser *cb = NULL;                      
      DKBrowserURL url2(String("preset://bricktest2.lib4d"));  
      cb->OpenNewBrowser(url2, 0);  
      

      As a second question is it possible to get access to the different display options in a browser window, such as the image display size and whether or not it is displaying as a Tree View?

      One final question, can you dock a newly created browser window to a plugins GeDialog at its time of creation? I saw a post saying that it was impossible to dock a dialog into Cinema, is it also impossible to do with a new GeDialog?

      Any help would be greatly appreciated.

      Johan

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

        On 15/05/2017 at 08:11, xxxxxxxx wrote:

        Hi Johan,

        actually we were a bit confused about your code snippet, as it looks like you are dereferencing a nullptr and we'd expected an immediate crash there...
        Anyway, I don't think, what you are asking for is possible. It's basically the same issue as with the Attribute Manager. There can be multiple of these dialogs open and currently the API provides no means to get a handle of one distinct instance of these dialogs.

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

          On 15/05/2017 at 08:35, xxxxxxxx wrote:

          Thanks for the response Andreas.

          That's about what I was expecting, just wanted to make sure first.

          Johan

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