BackdropNode
- class NodeGraphQt.BackdropNode(qgraphics_views=None)
The
NodeGraphQt.BackdropNode
class allows other node object to be nested inside, it’s mainly good for grouping nodes together.Methods:
on_backdrop_updated
(update_prop[, value])Slot triggered by the "on_backdrop_updated" signal from the node graph.
Auto resize the backdrop node to fit around the intersecting nodes.
wrap_nodes
(nodes)Set the backdrop size to fit around specified nodes.
nodes
()Returns nodes wrapped within the backdrop node.
set_text
([text])Sets the text to be displayed in the backdrop node.
text
()Returns the text on the backdrop node.
set_size
(width, height)Sets the backdrop size.
size
()Returns the current size of the node.
inputs
()outputs
()- on_backdrop_updated(update_prop, value=None)
Slot triggered by the “on_backdrop_updated” signal from the node graph.
- Parameters:
update_prop (str) – update property type.
value (object) – update value (optional)
- wrap_nodes(nodes)
Set the backdrop size to fit around specified nodes.
- Parameters:
nodes (list[NodeGraphQt.NodeObject]) – list of nodes.
- nodes()
Returns nodes wrapped within the backdrop node.
- Returns:
list of node under the backdrop.
- Return type:
list[NodeGraphQt.BaseNode]
- set_text(text='')
Sets the text to be displayed in the backdrop node.
- Parameters:
text (str) – text string.