Hey, I am trying to instantiate a graph that doesn't include the Backdrop Node:
class MyNodeGraph(NodeGraph):
def __init__(self, parent=None):
super(MyNodeGraph, self).__init__(parent)
However, __init__ calls _register_builtin_nodes(), which calls register_node(BackdropNode, alias='Backdrop'). So unless I override __init__, my best bet is to delete the node. Weirdly, I am not able to access it by any means (self in the current context is an instance of MyNodeGraph):
> self.registered_nodes()
> ['nodeGraphQt.nodes.BackdropNode']
> backdrop_node_type = self.registered_nodes()[0]
> print(backdrop_node_type)
> nodeGraphQt.nodes.BackdropNode
> self.get_nodes_by_type(backdrop_node_type)
> []
> self.get_node_by_name("Backdrop")
> None
Am I missing something? How can I access that Backdrop node and unregister it from the graph?
Hey, I am trying to instantiate a graph that doesn't include the Backdrop Node:
However,
__init__calls_register_builtin_nodes(), which callsregister_node(BackdropNode, alias='Backdrop'). So unless I override__init__, my best bet is to delete the node. Weirdly, I am not able to access it by any means (selfin the current context is an instance ofMyNodeGraph):Am I missing something? How can I access that
Backdropnode and unregister it from the graph?