From 10e2729237ec1b165e32f9e369e7d4b8c2afbbdc Mon Sep 17 00:00:00 2001 From: karimmozlia Date: Mon, 25 Oct 2021 14:27:40 +0200 Subject: [PATCH] hound --- openpype/hosts/maya/api/lib.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openpype/hosts/maya/api/lib.py b/openpype/hosts/maya/api/lib.py index 7a14646589..e53dddaf49 100644 --- a/openpype/hosts/maya/api/lib.py +++ b/openpype/hosts/maya/api/lib.py @@ -1851,6 +1851,7 @@ def set_scene_resolution(width, height, pixelAspect): cmds.setAttr("%s.deviceAspectRatio" % control_node, deviceAspectRatio) cmds.setAttr("%s.pixelAspect" % control_node, pixelAspect) + def reset_scene_resolution(): """Apply the scene resolution from the project definition @@ -1872,7 +1873,8 @@ def reset_scene_resolution(): width = asset_data.get(width_key, project_data.get(width_key, 1920)) height = asset_data.get(height_key, project_data.get(height_key, 1080)) - pixelAspect = asset_data.get(pixelAspect_key, project_data.get(pixelAspect_key, 1)) + pixelAspect = asset_data.get(pixelAspect_key, + project_data.get(pixelAspect_key, 1)) set_scene_resolution(width, height, pixelAspect)