From 0bce4762f12e10e3097c5acdafe746a3b1cc71cd Mon Sep 17 00:00:00 2001 From: Kayla Man Date: Wed, 22 Mar 2023 20:00:23 +0800 Subject: [PATCH] hound fix --- openpype/hosts/max/api/lib.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/openpype/hosts/max/api/lib.py b/openpype/hosts/max/api/lib.py index b6e3958797..577dc6e99d 100644 --- a/openpype/hosts/max/api/lib.py +++ b/openpype/hosts/max/api/lib.py @@ -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))