Anim8or Community

General Category => ASL Scripts => Topic started by: csf on December 17, 2008, 08:41:07 pm

Title: console output
Post by: csf on December 17, 2008, 08:41:07 pm
I am trying to output to the console, with out luck. Could some one show me an example of code that will output text to the console? 
Title: Re: console output
Post by: Kubajzz on December 17, 2008, 09:06:55 pm
Here's a simple example. You first have to declare a "file" type variable, then open the console and print your text... And close the console of course...
Code: [Select]
file $output;

$output.open("$console", "w");

$output.print("Some text");

$output.close;
Title: Re: console output
Post by: csf on December 18, 2008, 03:37:50 am
Thanks for the help. It worked!