Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Burnin: Get data from context with defined keys. #1897

Merged
merged 6 commits into from
Oct 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion openpype/plugins/publish/extract_burnin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import re
import subprocess
import json
import copy
import tempfile
Expand Down Expand Up @@ -156,6 +155,11 @@ def main_process(self, instance):
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:
Expand Down