30 lines
922 B
Markdown
30 lines
922 B
Markdown
<!-- Generated by SpecStory, Markdown v2.1.0 -->
|
|
|
|
<!-- cursor Session 3178f110-1a60-43b6-9d92-e189b2342c51 (2026-03-13 20:27Z) -->
|
|
|
|
# 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):
|
|
```python
|
|
# 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.
|
|
|
|
---
|
|
|