From 229d28a590d1b6d95639ecbf33fbcf84cd720f50 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 30 Oct 2020 10:50:55 +0100 Subject: [PATCH 1/3] add camera name to representation in extract playblast --- pype/plugins/maya/publish/extract_playblast.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pype/plugins/maya/publish/extract_playblast.py b/pype/plugins/maya/publish/extract_playblast.py index 8f8b7fcb362..fc80e74be03 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].nodeName() + 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) From aa806b8e73d612ee3dc74efef83bd64724a30804 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 30 Oct 2020 10:51:19 +0100 Subject: [PATCH 2/3] add camera name to burnin data so it's usable in burnin templates --- pype/plugins/global/publish/extract_burnin.py | 5 +++++ 1 file changed, 5 insertions(+) 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 = [] From ea15579c060944ee5288019d5d5c3cb97fc01328 Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Thu, 5 Nov 2020 17:04:51 +0100 Subject: [PATCH 3/3] get transform of camera for burnin --- pype/plugins/maya/publish/extract_playblast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pype/plugins/maya/publish/extract_playblast.py b/pype/plugins/maya/publish/extract_playblast.py index fc80e74be03..647d1f4503e 100644 --- a/pype/plugins/maya/publish/extract_playblast.py +++ b/pype/plugins/maya/publish/extract_playblast.py @@ -111,7 +111,7 @@ def process(self, instance): tags.append("delete") # Add camera node name to representation data - camera_node_name = pm.ls(camera)[0].nodeName() + camera_node_name = pm.ls(camera)[0].getTransform().getName() representation = { 'name': 'png',