Eyeon:Script/Reference/Libraries/base/print

From VFXPedia

< Eyeon:Script | Reference | Libraries | base
Revision as of 14:01, 9 December 2006 by Peter (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Base : print

Arguments

print(value, ... )

  • value (required, string)

The value(s) print will write to standard output (either the console window or command prompt). You can provide more than one value if they are separated by comments.

Returns

The print function does not return a value.

Remarks

The print function writes its arguments to standard output. The standard output is either the console display within Fusion, or the command prompt window if you are running scripts from the command line. If you provide a value to print that is not a string value, eyeonScript will attempt to convert the value to a string before writing it to the output.

You may provide multiple values to print(), separating each value with a comma. The values will be printed to the output with a tab between each value. If one of the arguments is an uninitialized variable or string the output for that variable will read as 'nil'.

The backslash '\' character is considered special in all string values, and this behavior also affects how print operates. For example, to print a newline to screen you would use '\n' in your string. For a tab character you would use '\t'. The backslash character itself must be represented by '\\'. You can use and instead of "" to wrap a string value that must be interpreted literally.

If you are working with an interactive script prompt like the one in the console window, or by running 'eyeonScript -i' from the command prompt, then you may use =value as a shortcut for print(value). This shortcut will not function from within a script.

The print function is intended for use to debug scripts, not to produce strongly formatted output. For formatted output try using the format() function instead.

Requirements

  • eyeonScript 5.0
  • Fusion 5.0

Examples

print("Hello World")

print("Hello", "World")

print(25 + 10)

print(x)

x="Not Nil!"

print(x)


!!RETURNS!!

Hello World

Hello World

35

nil

Not Nil!


Tips for print (edit)

EyeonTips:Script/Reference/Libraries/base/print