Merge pull request #1897 from tokejepsen/feature/burnin_context_data

This commit is contained in:
Milan Kolar 2021-10-06 16:50:56 +01:00 committed by GitHub
commit a61d9c0cf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,5 @@
import os
import re
import subprocess
import json
import copy
import tempfile
@ -158,6 +157,11 @@ class ExtractBurnin(openpype.api.Extractor):
filled_anatomy = anatomy.format_all(burnin_data)
burnin_data["anatomy"] = filled_anatomy.get_solved()
# Add context data burnin_data.
burnin_data["custom"] = (
instance.data.get("custom_burnin_data") or {}
)
# Add source camera name to burnin data
camera_name = repre.get("camera_name")
if camera_name: