Eyeon:Script/Reference/Applications/eyeonScript/Options

From VFXPedia

< Eyeon:Script | Reference | Applications | eyeonScript
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

Usage

If you run eyeonScript from the command prompt without any arguments the following information is printed, showing the list of arguments accepted :

eyeonScript script [args]

- Run script with arguments

eyeonScript -i 

- Enter interactive mode

eyeonScript -v 

- Print version information

eyeonScript -r 

- Register .eyeonscript file association

eyeonScript -l ip

- Log this computer in to Fusion on ip

eyeonScript -l ip 

- Log this computer out of Fusion on ip


Running a Script

To execute a script using eyeonScript.exe run eyeonScript followed by the name of the script to run, and any arguments that will be processed by the script. \The syntax is :

eyeonScript scriptname [args]

eyeonScript expects the extension .eyeonscript to appear at the end of the filename, so the extension can be skipped when specifying the script to run. For example the script c:\sample.eyeonscript can be called as 'eyeonScript sample.eyeonscript' or as 'eyeonScript sample'. If the extension of the script file is not .eyeonScript you will need to specify the full name of the file, including extension.

Arguments

Any number of arguments (or parameters) can be passed along to a script, as long as each argument is separated by a space. Command line arguments passed on to the script are accessed within the script using the arg[] table. For example, if you ran the following command from the prompt :

eyeonScript sample.eyeonscript test 1 hello

The arguments could be accessed using arg[1], arg[2], arg[3]. You can give names to the arguments instead of numbers by using name=value pairs, for example :


eyeonScript sample.eyeonscript one=test 1 message=hello

In this example you would access the arguments within the script using arg.one, arg[1], and arg.message. Be aware that the case of the argument's name is important, the argument named 'one' is not the same as the argument named'One'.


Tips for Options (edit)

EyeonTips:Script/Reference/Applications/eyeonScript/Options