Port Nodes

Port nodes are the nodes in a expanded NodeGraphQt.SubGraph that represent the ports from the parent NodeGraphQt.GroupNode object.

Classes:

NodeGraphQt.nodes.port_node.PortInputNode([...])

The PortInputNode is the node that represents a input port from a NodeGraphQt.GroupNode when expanded in a NodeGraphQt.SubGraph.

NodeGraphQt.nodes.port_node.PortOutputNode([...])

The PortOutputNode is the node that represents a output port from a NodeGraphQt.GroupNode when expanded in a NodeGraphQt.SubGraph.



PortInputNode

class NodeGraphQt.nodes.port_node.PortInputNode(qgraphics_item=None, parent_port=None)

The PortInputNode is the node that represents a input port from a NodeGraphQt.GroupNode when expanded in a NodeGraphQt.SubGraph.

Inheritance diagram of NodeGraphQt.nodes.port_node.PortInputNode
../_images/port_in_node.png

Attributes:

parent_port

The parent group node port representing this node.

Methods:

add_input([name, multi_input, display_name, ...])

Warning

This is not available for the PortInputNode class.

add_output([name, multi_output, ...])

property parent_port

The parent group node port representing this node.

Returns:

port object.

Return type:

NodeGraphQt.Port

add_input(name='input', multi_input=False, display_name=True, color=None, locked=False, painter_func=None)

Warning

This is not available for the PortInputNode class.

add_output(name='output', multi_output=True, display_name=True, color=None, locked=False, painter_func=None)

Warning

This function is called by NodeGraphQt.SubGraph.expand_group_node() and is not available for the PortInputNode class.


PortOutputNode

class NodeGraphQt.nodes.port_node.PortOutputNode(qgraphics_item=None, parent_port=None)

The PortOutputNode is the node that represents a output port from a NodeGraphQt.GroupNode when expanded in a NodeGraphQt.SubGraph.

Inheritance diagram of NodeGraphQt.nodes.port_node.PortOutputNode
../_images/port_out_node.png

Attributes:

parent_port

The parent group node port representing this node.

Methods:

add_input([name, multi_input, display_name, ...])

add_output([name, multi_output, ...])

Warning

This is not available for the PortOutputNode class.

property parent_port

The parent group node port representing this node.

Returns:

port object.

Return type:

NodeGraphQt.Port

add_input(name='input', multi_input=False, display_name=True, color=None, locked=False, painter_func=None)

Warning

This function is called by NodeGraphQt.SubGraph.expand_group_node() and is not available for the PortOutputNode class.

add_output(name='output', multi_output=True, display_name=True, color=None, locked=False, painter_func=None)

Warning

This is not available for the PortOutputNode class.