I’ve got a few nodes inside a node group I want to frame.
I’ve tried this code, and a lot of variants:
bpy.context.area.ui_type = 'ShaderNodeTree' bpy.ops.node.group_edit(exit=False) color_node.select = True opacity_node.select = True mix_layer_node = True bpy.ops.node.join() bpy.context.area.ui_type = 'VIEW_3D'
But I continually get “context is incorrect” errors.
I believe I need to start editing the node group before I try to frame the selected nodes, but I can’t figure out how to do this in Python.
anyone know how to do this?