GetConnectionFlag (FxOperator)

Description

Returns the status of a specific flag on the specified connection of the FxOperator.

Scripting Syntax

FxOperator.GetConnectionFlag( Index, FlagID )

C# Syntax

Boolean FxOperator.GetConnectionFlag( Int32 in_nIndex, Int32 in_nFlagID );

Parameters

Parameter

Type

Description

Index

Long

Index of the connection

FlagID

Long

Type of flag

Possible Values:

1: Specifies the Invert flag

2: Specifies the Selected flag

Return Value

Boolean

Examples

VBScript Example

set oRoot = ActiveProject.ActiveScene.Root
set oTree = oRoot.AddFxTree
set oFxOp = oTree.AddImageOperator("Noise")

for Cnx = 0 to oFxOp.ConnectionCount - 1
   LogMessage oFxOp.GetConnectionName(Cnx) & " support Invert flag? : " & oFxOp.IsConnectionFlagSupported(Cnx, 2)
   if oFxOp.IsConnectionFlagSupported(Cnx, 2) then
       LogMessage oFxOp.GetConnectionName(Cnx) & " Invert flag set? : " & oFxOp.GetConnectionFlag(Cnx, 2)
   end if
   LogMessage oFxOp.GetConnectionName(Cnx) & " support Select flag? : " & oFxOp.IsConnectionFlagSupported(Cnx, 1)
   if oFxOp.IsConnectionFlagSupported(Cnx, 1) then
       LogMessage oFxOp.GetConnectionName(Cnx) & " Select flag set? : " & oFxOp.GetConnectionFlag(Cnx, 1)
   end if
next

See Also

FxTree



Autodesk Softimage v7.5