Fix: Motion Tracking: Clip->Setup Tracking Scene broken

Using the operator caused Python exceptions. The reason was the script
was not updated after the recent breaking changes in the compositor.

Pull Request: https://projects.blender.org/blender/blender/pulls/147109
This commit is contained in:
Habib Gahbiche
2025-10-01 11:48:51 +02:00
parent bef38ec3fa
commit 5c58e29bd2

View File

@@ -749,12 +749,12 @@ class CLIP_OT_setup_tracking_scene(Operator):
movieclip.clip = clip
distortion.clip = clip
distortion.distortion_type = 'UNDISTORT'
distortion.inputs['Type'].default_value = 'Undistort'
if need_stabilization:
stabilize.clip = clip
scale.space = 'RENDER_SIZE'
scale.inputs['Type'].default_value = 'Render Size'
rlayer_bg.scene = scene
rlayer_bg.layer = "Background"
@@ -771,15 +771,15 @@ class CLIP_OT_setup_tracking_scene(Operator):
else:
tree.links.new(distortion.outputs["Image"], scale.inputs["Image"])
tree.links.new(scale.outputs["Image"], shadowcatcher.inputs[1])
tree.links.new(scale.outputs["Image"], shadowcatcher.inputs["Background"])
tree.links.new(rlayer_bg.outputs["Image"], shadowcatcher.inputs[2])
tree.links.new(rlayer_bg.outputs["Image"], shadowcatcher.inputs["Foreground"])
tree.links.new(rlayer_fg.outputs["Image"], alphaover.inputs[2])
tree.links.new(rlayer_fg.outputs["Image"], alphaover.inputs["Foreground"])
tree.links.new(shadowcatcher.outputs["Image"], alphaover.inputs[1])
tree.links.new(shadowcatcher.outputs["Image"], alphaover.inputs["Background"])
tree.links.new(alphaover.outputs["Image"], output.inputs[0])
tree.links.new(alphaover.outputs["Image"], output.inputs["Image"])
tree.links.new(alphaover.outputs["Image"], viewer.inputs["Image"])
# Place nodes.