Files
Dynamic-Link-Manager/.specstory/history/2026-03-13_20-27Z-run-retarg-relatives-function-modification.md
T

922 B

Run retarg relatives function modification (2026-03-13 20:27Z)

User

  1. Read the file T:\Dynamic-Link-Manager\ops\migrator.py around line 461 (where run_retarg_relatives is defined based on our earlier search)

  2. Find the exact content of the run_retarg_relatives function

  3. Add the following code at the end of the function (before any return statement or at the end of the function):

    # Camera DOF: retarget focus_object from orig to rep
    for ob in bpy.data.objects:
        if ob.type != 'CAMERA':
            continue
        camera = ob.data
        if not camera.dof:
            continue
        if camera.dof.focus_object == orig:
            camera.dof.focus_object = rep

Use Python to read the file, find the function, and add the new code.