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

    Accessing files on internet via URL

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 247 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 03/12/2007 at 22:32, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.1.1 
      Platform:    Mac  ;  
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Greetings,
         I've had some luck, with kuroyume0161's help, creating a speedy file parser. I'd like to take this to the next level- to allow a user to simply type in one or more of the 47,509 unique 4 digit codes that will allow them to access the file for the available molecule.
         The code itself seems trivial, e.g. if the file were on a local drive, one could use FileManipulation and BaseFile elements to access, but I can't find a function that will grant me access to the web....I simply want to access information in an ASCII file, either download it, or not, at a URL with a variable 4 digit code on its tail, .../xyzn.pdb, for example, http://www.rcsb.org/pdb/files/2onj.pdb.
         Does such a function exist in coffee? If not, how about in the C++ SDK? If not there, has anyone had luck firing up such a script in another language and using Coffee to run it? I'd be happy to launch some other app behind the scenes that can do this and download the files I need into a folder that the rest of the Coffee script would allow me to manipulate them, but I really want an end user to be able to do this, without worry, directly from a simple C4D dialog. Might the [type] and [creator] elements of Open under BaseFile in the SDK allow such an option? If so, how could I find out what integer to use for a creator other than C4D, like, I don't know, Apple's "Automator"?
      Thanks,
      Graham

      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 04/12/2007 at 13:00, xxxxxxxx wrote:

        Hi,
           Does anybody have any input on this topic? Can you script Coffee to download files from the internet? If not, can you tell it to open an external script, i.e. Automator that will open a default browser and download the needed files to a folder?
        Thanks,
        Graham

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