Houdini 20.5 Nodes APEX nodes

graph::FindPort

Finds a port on an APEX node based on a port name.

On this page
Since 20.0

Finds a port on an APEX node based on the portname. If the port name is unique on the node, the port name can be used directly in portname. If the port name has a matching input or output port with the same name, it is important to specify in the portname whether you want to query the input or output port.

Action

portname

Query an input port

<my_port>[in]

Query an output port

<my_port>[out]

If the port cannot be found, an invalid port ID is returned. The Convert<ApexPortID, Bool> node can be used to determine whether or not a port ID is valid.

Inputs

graph: ApexGraphHandle

The graph that contains the port to find.

nodeid: ApexNodeID

The node with the port to find.

portname: String

The port to find.

Outputs

portid: ApexPortID

The unique port identifier, created at run time, that represents the port found in the graph.

See also

APEX nodes