Eyeon:Script/Reference/Libraries/base/dofile

From VFXPedia

Jump to: navigation, search

Contents

Base : dofile

Arguments

dofile( filename )

  • filename

(required, string) A string containing the path to the script file which will be executed.

Returns

Returns true if the script completed successfully or nil if it did not.

Remarks

This general function is used to execute a file on disk as a script. The filename argument must contain a fully qualified name to a file on disk that contains valid script commands.

The script within the file executes within the environment of your current script, as if the commands in the file were directly part of the calling script. Variables and functions created in the loaded script will remain accessible from the main script when the dofile() function returns.

Any critical errors affecting the loaded script will halt the execution of the calling script, less critical errors will generate nil as a return value.

Requirements

  • eyeonScript 5.0
  • Fusion 5.0

Examples

dofile("c:\\program files\\fusion 5\\scripts\\composition\\example.eyeonscript")


Tips for dofile (edit)

EyeonTips:Script/Reference/Libraries/base/dofile