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

Commit

Permalink
Merge pull request #674 from pypeclub/feature/camera_name_in_burnins
Browse files Browse the repository at this point in the history
Camera name in burnins
  • Loading branch information
mkolar authored Nov 5, 2020
2 parents 2adbb36 + ea15579 commit 5d54cfa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pype/plugins/global/publish/extract_burnin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
6 changes: 5 additions & 1 deletion pype/plugins/maya/publish/extract_playblast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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)

Expand Down

0 comments on commit 5d54cfa

Please sign in to comment.