Ellory Yu wrote: Jamie, can you share an online reference and/or examples on how to do this sidecar using JSON scripts? Where can I find the sidecar keys to be used in the JSON pairs? Then how is the JSON file used?
It's in the documents section of the installation package for the Blackmagic RAW SDK along with sample BRAW frame and sample sidecar file.

- CleanShot 2022-05-09 at 12.30.02@2x.png (124.56 KiB) Viewed 2025 times

- CleanShot 2022-05-09 at 12.29.44@2x.png (102.4 KiB) Viewed 2025 times

- CleanShot 2022-05-09 at 12.30.30@2x.png (198.91 KiB) Viewed 2025 times
You can also simply export a sidecar file from Resolve and edit it from there in any text editor. To swap out a 3D LUT just open the LUT in any text editor, copy out the values, and paste them into the sidecar file. Easy peasy.
You don't have to add settings for all the values that sidecar files support. Any value not specified will always default to the value in the BRAW file itself. So, I generally only adjust a few values — the highlight recovery, gamut compression, gamma, gamut, and the 3D LUT options are the only values that I adjust in most cases.
Once I've got the sidecar file set the way I want it, I open the folder of BRAW files in a Terminal window and run this simple ZSH script to clone that single sidecar for every BRAW file in the folder.
- Code: Select all
for FILE in *.braw; do
name=$(echo "$FILE" | cut -f 1 -d '.')
cp x.sidecar $name.sidecar
done
For this script to work either name the sidecar you want to close as x.sidecar, or change the name in the script to match the name of the sidecar file you are using.
If after all that you need to make bespoke clip by clip adjustments to ISO, exposure or white balance, just load the files into Resolve (if they were already loaded, make sure to restart Resolve so that it reads the newly created sidecar files) adjust them clip by clip, and click the "update sidecar" button. This will preserve what was done in the earlier batch operation and only update the specific values that have been changed.