mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
add camera name to representation in extract playblast
This commit is contained in:
parent
b32ef567f0
commit
229d28a590
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue