mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix(global): adding collector for fps and pixel_aspect
This commit is contained in:
parent
aa40c8030a
commit
6d0fd510bf
1 changed files with 5 additions and 1 deletions
|
|
@ -108,9 +108,13 @@ class CollectInstanceAnatomyData(pyblish.api.InstancePlugin):
|
|||
if resolution_height:
|
||||
anatomy_data["resolution_height"] = resolution_height
|
||||
|
||||
pixel_aspect = instance.data.get("pixelAspect")
|
||||
if pixel_aspect:
|
||||
anatomy_data["pixel_aspect"] = float("{:0.2f}".format(pixel_aspect))
|
||||
|
||||
fps = instance.data.get("fps")
|
||||
if resolution_height:
|
||||
anatomy_data["fps"] = fps
|
||||
anatomy_data["fps"] = float("{:0.2f}".format(fps))
|
||||
|
||||
instance.data["projectEntity"] = project_entity
|
||||
instance.data["assetEntity"] = asset_entity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue