diff --git a/pype/plugins/global/publish/extract_burnin.py b/pype/plugins/global/publish/extract_burnin.py index bf29e12eab2..c856bf602ff 100644 --- a/pype/plugins/global/publish/extract_burnin.py +++ b/pype/plugins/global/publish/extract_burnin.py @@ -157,6 +157,11 @@ def main_process(self, instance): filled_anatomy = anatomy.format_all(burnin_data) burnin_data["anatomy"] = filled_anatomy.get_solved() + # Add source camera name to burnin data + camera_name = repre.get("camera_name") + if camera_name: + burnin_data["camera_name"] = camera_name + first_output = True files_to_delete = [] diff --git a/pype/plugins/maya/publish/extract_playblast.py b/pype/plugins/maya/publish/extract_playblast.py index 8f8b7fcb362..647d1f4503e 100644 --- a/pype/plugins/maya/publish/extract_playblast.py +++ b/pype/plugins/maya/publish/extract_playblast.py @@ -110,6 +110,9 @@ def process(self, instance): if not instance.data.get("keepImages"): tags.append("delete") + # Add camera node name to representation data + camera_node_name = pm.ls(camera)[0].getTransform().getName() + representation = { 'name': 'png', 'ext': 'png', @@ -119,7 +122,8 @@ def process(self, instance): "frameEnd": end, 'fps': fps, 'preview': True, - 'tags': tags + 'tags': tags, + 'camera_name': camera_node_name } instance.data["representations"].append(representation)