mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 06:12:19 +01:00
get hierarchical attribute is used for resolution data
This commit is contained in:
parent
357a11e50b
commit
c1b0164dea
1 changed files with 4 additions and 4 deletions
|
|
@ -408,10 +408,10 @@ def reset_resolution():
|
|||
asset = io.find_one({"name": asset, "type": "asset"})
|
||||
|
||||
try:
|
||||
width = asset["data"].get("resolution_width", 1920)
|
||||
height = asset["data"].get("resolution_height", 1080)
|
||||
pixel_aspect = asset["data"].get("pixel_aspect", 1)
|
||||
bbox = asset["data"].get("crop", "0.0.1920.1080")
|
||||
width = get_hierarchical_attr(asset, 'data.resolution_width', 1920)
|
||||
height = get_hierarchical_attr(asset, 'data.resolution_height', 1080)
|
||||
pixel_aspect = get_hierarchical_attr(asset, 'data.pixel_aspect', 1)
|
||||
bbox = get_hierarchical_attr(asset, 'data.crop', "0.0.1920.1080")
|
||||
|
||||
try:
|
||||
x, y, r, t = bbox.split(".")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue