3) Notice that the script opens with a Dot node and a Grade node (which does not exist in the Node Graph) in the Properties panel:
4) Try to create any node in the Node Graph. Notice that the nodes do not appear in the Node Graph, but are opened in the Properties panel.
5) Select the Dot node in the Node Graph and delete it. Notice that the Nodes you tried creating in step 4 now appear.
Expected behaviour The Python code (triggered via TCL) should be executed on startup, and the Grade node should not appear in the Properties panel. Users should be able to add additional nodes to the Node Graph as expected.
Actual behaviour The Grade node (which should be deleted by the TCL-triggered Python code) still appears in the Properties panel. This also prevents new nodes from being added to the Node Graph.
Workaround You may be able to workaround the issue by wrapping the Python code into a function, and calling it with a QTimer. For example, save the following into a .nk script: