922 B
922 B
Run retarg relatives function modification (2026-03-13 20:27Z)
User
-
Read the file T:\Dynamic-Link-Manager\ops\migrator.py around line 461 (where run_retarg_relatives is defined based on our earlier search)
-
Find the exact content of the run_retarg_relatives function
-
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.