Parameter.AddCustomOp
 
 
 

Parameter.AddCustomOp

Introduced

v5.1

Description

Creates and returns a new Self-Installed Custom Operator and connects its output to this parameter.

Tip: This is the Object Model version of the AddCustomOp command, which also creates a Self-Installed Custom Operator. To create a runtime scripted operator, use the AddScriptedOp command or Parameter.AddScriptedOp method.

C# Syntax

CustomOperator Parameter.AddCustomOp( String bszType, Object vInputs, String bszName );

Scripting Syntax

oReturn = Parameter.AddCustomOp( [Type], [Inputs], [Name] );

Return Value

The newly created Self-Installed CustomOperator

Parameters

Parameter Type Description
Type String SIObject.Name for the Self-Installed Custom Operator
Inputs List List of objects or parameters to be connected to input ports. The order of these inputs will decide the index value used to retrieve each input (see OperatorContext.GetInputValue).

Default Value: The operator will be created with no inputs

Name String The name of the new operator

Default Value: The operator will be named based on its type

See Also

AddCustomOp AddScriptedOp ProjectItem.AddCustomOp OperatorContext CustomOperator