AddFxOp

Introduced

3.0

Description

Adds an image operator to an FxTree.

Scripting Syntax

AddFxOp( [FxTree], PresetName )

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 and Image Operators

Name of operator preset. This can be either a built-in effect name or a file on disk (with path).

Return Value

FxOperator

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"


Autodesk Softimage v7.5