Update for Blender 5.2
- use new api compositor access - Fix file output nodes connexion/renumber/rename/slots handlibng - consider the new output types - fixes node position with new API - fix errors with handler LLM assisted update
This commit is contained in:
@@ -5,6 +5,8 @@ from bpy.props import (StringProperty,
|
||||
BoolProperty,
|
||||
)
|
||||
|
||||
from .. import fn
|
||||
|
||||
class RT_OT_enable_all_viewlayers(Operator):
|
||||
bl_idname = "rt.enable_all_viewlayers"
|
||||
bl_label = "Enable All Viewlayers"
|
||||
@@ -27,10 +29,14 @@ class RT_OT_activate_only_selected_layers(Operator):
|
||||
bl_description = "Activate only selected node view layer , excluding all others"
|
||||
bl_options = {"REGISTER"}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
return fn.get_compositor_tree(context.scene) is not None
|
||||
|
||||
def execute(self, context):
|
||||
scn = context.scene
|
||||
|
||||
nodes = scn.node_tree.nodes
|
||||
nodes = fn.get_compositor_tree(scn).nodes
|
||||
|
||||
rlayers_nodes = [n for n in nodes if n.select and n.type == 'R_LAYERS']
|
||||
vls = [scn.view_layers.get(n.layer) for n in rlayers_nodes if scn.view_layers.get(n.layer)]
|
||||
|
||||
Reference in New Issue
Block a user