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:
Cinema 4D Version: 10.1.1
Platform: Mac ;
Language(s) : C.O.F.F.E.E ;
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"?