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

    Simple Browser

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 262 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 14/11/2012 at 17:47, xxxxxxxx wrote:

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

      ---------
      Hi Folks,
       
      just a bit lost as to how to go about making a simple browser area in a dialog I have. I've tried with the HTML viewer, and while I can get web pages to load, I can't get for instance "My Computer" to show up. The html browser was done using CUSTOMGUI_HTMLVIEWER through an AddCustomGui dialog element. Though I'm not after a web browser - I only tried it this way to experiment.
       
      But does anyone have a simple example of this using files and folders etc? Or perhaps point me in the right direction?
      Regards,
       
      WP.

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 15/11/2012 at 05:06, xxxxxxxx wrote:

        Hi WP,

        the file:// protocol in browsers are handled differently. I don't know how the HTML Viewer of Cinema 4D reacts on the protocol, it is very much dependend on the implementation. The http:// protocol for example implies that port 80 is used when doing a request to the server at the location.

        In case the HTML Viewer of Cinema 4D does handle the file:// protocol, it may try to do a request to the localhost on a specific port, and you'd need to start a socket serving this port providing the html content to be displayed.

        If not, you'd need to recognize if the the HTML Viewer tries to resolve an URL with file:// and internally point the HTML Viewer to another URL (for example localhost:1294 ) where again your own server listens or you instantly generate the HTML and pass it to the HTML Viewer (afaik, that is possible with SetHtml()?).

        The guys that implemented the HTML Viewer should be able to tell you more about what it does when recgonizing the file:// protocol.

        Best,
        Niklas

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 15/11/2012 at 15:34, xxxxxxxx wrote:

          Yessss!!
           
          Cheers Niklas, managed to get something showing! My day has been made already.
           
          I'm really enjoying the prospects of what could be made with this plugin business stuff at the moment.... 😃 Cheers,
           
          WP.

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