add camera name to representation in extract playblast

This commit is contained in:
iLLiCiTiT 2020-10-30 10:50:55 +01:00
parent b32ef567f0
commit 229d28a590

View file

@ -110,6 +110,9 @@ class ExtractPlayblast(pype.api.Extractor):
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 @@ class ExtractPlayblast(pype.api.Extractor):
"frameEnd": end,
'fps': fps,
'preview': True,
'tags': tags
'tags': tags,
'camera_name': camera_node_name
}
instance.data["representations"].append(representation)