added custom data to burnin custm data

This commit is contained in:
Jakub Trllo 2022-04-07 19:06:35 +02:00
parent 486317cb96
commit bedccd6f69

View file

@ -221,11 +221,17 @@ 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"] = (
custom_data = copy.deepcopy(
instance.data.get("customData") or {}
)
# Backwards compatibility
custom_data.update(
instance.data.get("custom_burnin_data") or {}
)
# Add context data burnin_data.
burnin_data["custom"] = custom_data
# Add source camera name to burnin data
camera_name = repre.get("camera_name")
if camera_name: