mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
hound fix
This commit is contained in:
parent
20219b465b
commit
0bce4762f1
1 changed files with 5 additions and 4 deletions
|
|
@ -186,10 +186,11 @@ def reset_scene_resolution():
|
|||
Returns:
|
||||
None
|
||||
"""
|
||||
project_resolution_data = get_current_project(fields=["data.resolutionWidth",
|
||||
"data.resolutionHeight"])["data"]
|
||||
asset_resolution_data = get_current_project_asset(fields=["data.resolutionWidth",
|
||||
"data.resolutionHeight"])["data"]
|
||||
data = ["data.resolutionWidth","data.resolutionHeight"]
|
||||
project_resolution = get_current_project(fields=data)["data"]
|
||||
project_resolution_data = project_resolution["data"]
|
||||
asset_resolution = get_current_project_asset(fields=data)["data"]
|
||||
asset_resolution_data = asset_resolution["data"]
|
||||
# Set project resolution
|
||||
project_width = int(project_resolution_data.get("resolutionWidth", 1920))
|
||||
project_height = int(project_resolution_data.get("resolutionHeight", 1080))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue