ConnectToGroup (Operator)

Introduced

4.0

Description

Connects an object to a port group. This method is useful for dynamic operators, where optional or multi-instance connections are made after the object is already connected.

Note: This method only works for Self-Installed Custom Operators if there is a single port inside the port group. This limitation exists because you can only pass a single object in the Object argument.

Scripting Syntax

Operator.ConnectToGroup( Group, Object )

C# Syntax

Int32 Operator.ConnectToGroup( Int32 in_group, Object in_obj );

Parameters

Parameter

Type

Description

Group

Long

Which port group to connect

Object

Object

The object to be connected to the port. For built-in Operators this object can be a X3DObject and Softimage will attempt to find the correct data underneath the X3DObject to match each port inside the PortGroup. For Self-Installed Custom Operators this should be the specific target object for the port inside the PortGroup.

Return Value

Long The index of new port group instance.

See Also

Operator.DisconnectGroup

UpdateConnectOnOp

Examples

• See Operator.ConnectToGroup.1.js



Autodesk Softimage 2011