Port Nodes
NodeGraphQt.SubGraph that
represent the ports from the parent NodeGraphQt.GroupNode object.Classes:
The |
|
The |
Hint
Port node objects can be accessed in a expanded
NodeGraphQt.GroupNode with:
PortInputNode
- class NodeGraphQt.nodes.port_node.PortInputNode(qgraphics_item=None, parent_port=None)
The
PortInputNodeis the node that represents a input port from aNodeGraphQt.GroupNodewhen expanded in aNodeGraphQt.SubGraph.
Attributes:
The parent group node port representing this node.
Methods:
add_input([name, multi_input, display_name, ...])Warning
This is not available for the
PortInputNodeclass.add_output([name, multi_output, ...])- property parent_port
The parent group node port representing this node.
- Returns:
port object.
- Return type:
- add_input(name='input', multi_input=False, display_name=True, color=None, locked=False, painter_func=None)
Warning
This is not available for the
PortInputNodeclass.
- 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 thePortInputNodeclass.
PortOutputNode
- class NodeGraphQt.nodes.port_node.PortOutputNode(qgraphics_item=None, parent_port=None)
The
PortOutputNodeis the node that represents a output port from aNodeGraphQt.GroupNodewhen expanded in aNodeGraphQt.SubGraph.
Attributes:
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
PortOutputNodeclass.- property parent_port
The parent group node port representing this node.
- Returns:
port object.
- Return type:
- 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 thePortOutputNodeclass.