mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
collect templates fps fix
This commit is contained in:
parent
59305a1210
commit
791bb63f97
2 changed files with 12 additions and 5 deletions
|
|
@ -76,10 +76,18 @@ class CollectTemplates(pyblish.api.InstancePlugin):
|
|||
"subset": subset_name,
|
||||
"version": version_number,
|
||||
"hierarchy": hierarchy.replace("\\", "/"),
|
||||
"representation": "TEMP",
|
||||
"resolution_width": instance.data.get("resolutionWidth", ""),
|
||||
"resolution_height": instance.data.get("resolutionHeight", ""),
|
||||
"fps": str(instance.data.get("fps", ""))}}
|
||||
"representation": "TEMP")}
|
||||
|
||||
resolution_width = instance.data.get("resolutionWidth")
|
||||
resolution_height = instance.data.get("resolutionHeight")
|
||||
fps = instance.data.get("fps")
|
||||
|
||||
if resolution_width:
|
||||
template_data["resolution_width"] = resolution_width
|
||||
if resolution_width:
|
||||
template_data["resolution_height"] = resolution_height
|
||||
if resolution_width:
|
||||
template_data["fps"] = fps
|
||||
|
||||
instance.data["template"] = template
|
||||
instance.data["assumedTemplateData"] = template_data
|
||||
|
|
|
|||
|
|
@ -273,7 +273,6 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
resolution_height = repre.get("resolutionHeight")
|
||||
fps = instance.data.get("fps")
|
||||
|
||||
|
||||
if resolution_width:
|
||||
template_data["resolution_width"] = resolution_width
|
||||
if resolution_width:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue