From 42119cfca19c09085d2e68615e468263df205b08 Mon Sep 17 00:00:00 2001 From: karimmozlia Date: Tue, 26 Oct 2021 14:58:38 +0200 Subject: [PATCH] disable maintain_aspect_ratio when width , height --- openpype/vendor/python/common/capture.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openpype/vendor/python/common/capture.py b/openpype/vendor/python/common/capture.py index 02d86952df..6b4c40a6e8 100644 --- a/openpype/vendor/python/common/capture.py +++ b/openpype/vendor/python/common/capture.py @@ -116,6 +116,8 @@ def capture(camera=None, if not cmds.objExists(camera): raise RuntimeError("Camera does not exist: {0}".format(camera)) + if width and height : + maintain_aspect_ratio = False width = width or cmds.getAttr("defaultResolution.width") height = height or cmds.getAttr("defaultResolution.height") if maintain_aspect_ratio: