Houdini 20.0 Nodes APEX Nodes

graph::FindOrAddPort

Finds or adds an APEX port or subport of an APEX node based on a port name.

On this page
Since 20.0

Finds or adds an APEX port or subport based on the portname on a given node in a APEX graph . If the portname specified is unique on the given node the port name can be directly used. If the port name has a matching input or output port then it is import to specify if the input our output is to be queried. The following queries and output port

my_port[out]

And input port can be queried in the folling way.

my_port[in]

If a subport is to be found or added the name of the given subport must be specified:

my_port[my_subport]

This can be combined with the input and output indicators

my_port[my_subport][in]

If the port can not be found or added the return port will point to nothing. The Convert<ApexPortID, Bool> callback can be used to check if a given node id is valid or not.

Inputs

*graph: ApexGraphHandle Required

The APEX graph containing the port to be found.

nodeid: ApexNodeID

The APEX node with the port to be added or found.

portname: String

The name of the APEX port to be added or found.

Outputs

*graph: ApexGraphHandle

The APEX graph containing the found or added port.

portid: ApexPortID

The unique port identifier, created at run time, representing the found or added port in the graph.

APEX Nodes