PDA

View Full Version : Silly COFFEE problem


Pate
10-11-2003, 07:31 AM
Hi!

I have a weird problem in my COFFEE expression tag. I try to create a text file and output a line of text into it, but the following line

var f = new(BaseFile);

always makes f = nil, and I can't figure out why...

Anybody know what is wrong? This is practically straight from the BaseFile example on COFFEE SDK, so I think it should work..

Thanks!

Pate

paintbox
10-11-2003, 10:09 AM
Hmmm, I'm pretty a newbie at programming (and I like to learn COFFEE) , but maybe you need to declare the var first ?

so var f becomes a number or string ?

Again, I don't no a great deal about programming, but that's my first hunch. I hope a COFFEE master arrives soon :)

Srek
10-11-2003, 05:19 PM
Hi,
maybe because you are not allowed to access files during rendertime?
Afaik this is only possible when using COFFEE in a plugin not in a Tag or a COFFEE node.
Cheers
Srek

Pate
10-11-2003, 06:35 PM
Okay, thanks for the info Srek. I began suspecting something like this.

I just wanted to output some debug stuff to a file, so this is not a big deal.. I'll just have to keep on using the console window.

Thanks for the replies!

Pate

CGTalk Moderation
01-16-2006, 07:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.