In this article, we’ll explore the “Extract Focal Length” script, which allows you to copy the focal length curve from EXR metadata directly into the Curve Editor. Additionally, if the focal length remains constant and a curve is unnecessary, you can extract the value from the EXR and write it directly to the lens connected to the camera.
Script Origin and Improvements
Our script is a fork of an existing script by Uwe Sassenberg. However, we found that it did not always function correctly. To improve its reliability and functionality, we made several fixes and added new features, including the ability to transfer focal distance to the camera lens and subsequently convert it to focus distance.
How to Use the Script
- Focal Length Curve Extraction
The script copies the focal length curve from the EXR metadata and writes it into the Curve Editor.
If the focal length does not change, you can extract it directly from the EXR and write it to the lens without needing a curve.
- Specifying the Focal Length Attribute
The script attempts to automatically detect the focal length attribute. If it is not detected or is incorrect, you need to manually specify the focal length attribute.
How to install the script
To install the script, follow the instructions provided in the “Installation.txt” file included in the downloadable archive.
The installation process is straightforward, ensuring that you can quickly integrate the script into your workflow and start using it immediately
Practical Tips
- Automatic vs. Manual Detection: Always verify the automatically detected focal length attribute to ensure accuracy. If needed, manually enter the correct attribute.
- Consistent Focal Length: For static focal lengths, writing the value directly to the lens simplifies the process and avoids unnecessary curve creation.
Conclusion
The “Extract Focal Length” script is a versatile tool for managing focal length data within 3DEqualizer. By improving upon the original script and adding new functionalities, we provide a reliable solution for both dynamic and static focal length scenarios.