THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/01/2008 at 20:29, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.5
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
Hi. I'm a new() COFFEE user but I can't get new() to work!:)
I'm trying to access a file from within a COFFEE script and whenever I try to instantiate a BaseFile object using new(BaseFile) I get a NIL instead of an object. I have tried copying and pasting the code from the 9.5 COFFEE SDK into my script and it does not run because the new() function returns a NIL. (See below)
Does someone have a clue to steer me in the right direction?
// Creates the file and writes a string to it
var file = new(BaseFile);
file->Open(filename, GE_WRITE);
file->WriteString("Hello World!");