feat: blur適用

This commit is contained in:
2026-02-06 21:22:21 +09:00
parent c0ad2a551d
commit 0c9b646690
2 changed files with 116 additions and 26 deletions
+13 -6
View File
@@ -132,17 +132,24 @@ def setup_strip_compositor_modifier(
name="FaceMaskBlur",
type='COMPOSITOR',
)
# Set the node tree
modifier.node_tree = node_tree
# Set the node tree/group (Blender 5.0 uses node_group instead of node_tree)
if hasattr(modifier, 'node_group'):
# Blender 5.0+
modifier.node_group = node_tree
elif hasattr(modifier, 'node_tree'):
# Blender 4.x
modifier.node_tree = node_tree
else:
raise AttributeError("Compositor modifier has neither 'node_group' nor 'node_tree' attribute")
# Configure input mapping
# The modifier automatically maps strip image to first input
# We need to configure the mask input
# TODO: Blender 5.0 may have different API for this
# This is a placeholder for the actual implementation
return modifier