## AddFxOp

### Introduced

v3.0

### Description

Adds an image operator to an FxTree.

### Scripting Syntax

    oReturn = AddFxOp( [FxTree], PresetName );

### Return Value

FxOperator

### Parameters

Parameter | Type | Description
--- | --- | ---
FxTree | String or FxTree | Object pointer or Object name for FxTree. Default Value: Current selection. Note: If the current selection is not a valid FxTree, an error occurs.
PresetName | Fx Operator Preset | Name of operator preset. This can be either a built-in effect name or a file on disk (with path).

### Examples

#### VBScript Example

    ' This example creates an FxTree, adds some operators to it

    ' and displays the operators in the tree

    set oTree = CreateFxTree()

    AddFxOp oTree, "File Input"

    AddFxOp oTree, "Noise"

    AddFxOp oTree, "EdgeDetect"

    for each oOperator in oTree.FxOperators

    	Application.LogMessage "Name of Fx Operator: " & oOperator.Name

    next

    ' Output of above script:

    'INFO : "Name of Fx Operator: FileInput"

    'INFO : "Name of Fx Operator: Noise"

    'INFO : "Name of Fx Operator: EdgeDetect"