feat: blur適用
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user