This snippet can be run from Text Editor to get an idea of what I mean.
import bpy nt = bpy.data.materials['Material'].node_tree nodes = nt.nodes a = nodes.new('ShaderNodeBsdfDiffuse') a.location = 0, 0 b = nodes.new('ShaderNodeBsdfDiffuse') b.location = 200, 0 f = nodes.new('NodeFrame') f.location = -200, 0 a.parent = f b.parent = f
That produces this initially.
only when i move the mouse inside the nodeview does the Frame update its visual representation.
I would love some suggestions. The code/Operator that we execute in Sverchok has the NodeView context and an edit_tree if that helps.