Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: console output  (Read 7670 times)

csf

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • CSF On The Web
console output
« on: December 17, 2008, 03: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? 
Logged
AKA coaster sim. fan on the old boards

Kubajzz

  • Flying Platypus
  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 548
  • Little doggie ate my avatar...
    • View Profile
Re: console output
« Reply #1 on: December 17, 2008, 04: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;
Logged

csf

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • CSF On The Web
Re: console output
« Reply #2 on: December 17, 2008, 10:37:50 pm »

Thanks for the help. It worked!
Logged
AKA coaster sim. fan on the old boards