Anim: add Action+Slot selector for Compositing Node Tree

This allows users to manage the Action and Slot assignment of a Scene's
compositing nodes. The selector lives in the Animation Panel in Scene
Properties, alongside the Action+Slot selector of the Scene ID itself.

Pull Request: https://projects.blender.org/blender/blender/pulls/133141
This commit is contained in:
Nathan Vegdahl 2025-01-20 15:18:21 +01:00 committed by Nathan Vegdahl
parent fc44eb910d
commit 1ac5b45eae

View file

@ -444,6 +444,22 @@ class SCENE_PT_eevee_next_light_probes(SceneButtonsPanel, Panel):
class SCENE_PT_animation(SceneButtonsPanel, PropertiesAnimationMixin, PropertyPanel, Panel):
_animated_id_context_property = "scene"
def draw(self, context):
layout = self.layout
layout.use_property_split = True
layout.use_property_decorate = False
scene = context.scene
col = layout.column(align=True)
col.label(text="Scene")
self.draw_action_and_slot_selector(context, col, scene)
if node_tree := scene.node_tree:
col = layout.column(align=True)
col.label(text="Compositing Node Tree")
self.draw_action_and_slot_selector(context, col, node_tree)
class SCENE_PT_custom_props(SceneButtonsPanel, PropertyPanel, Panel):
_context_path = "scene"