Eyeon:Script/Reference/Applications/Fusion/Classes/Composition/RunScript

From VFXPedia

Jump to: navigation, search

Contents

Composition : RunScript

Arguments

RunScript(filename)

  • filename( string, required )

The filename of a script to be run in the composition environment.

Since version 6.3.2 you can run Python and eyeonScripts.

Returns

This function does not return a value.

Remarks

Use this function to run a script in the composition environment. This is similar to launching a script from the comp's Scripts menu.

The script will be started with 'fusion' and 'composition' variables set to the Fusion and currently active Composition objects. The filename given may be fully specified, or may be relative to the comp's Scripts: path.

Fusion supports .py .py2 and .py3 extensions to differentiate python script versions.

Requirements

  • eyeonScript 5.0
  • Fusion 5.0

Examples

composition:RunScript([[comp\Switch Motion Blur.eyeonscript]])


Tips for RunScript (edit)

EyeonTips:Script/Reference/Applications/Fusion/Classes/Composition/RunScript