From 0229c35a4d207a23100e312eab33000697100e65 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Wed, 5 Dec 2018 13:47:13 +0100 Subject: [PATCH] wip on reset_format --- pype/nuke/lib.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pype/nuke/lib.py b/pype/nuke/lib.py index b3ae82c609..173b3bf692 100644 --- a/pype/nuke/lib.py +++ b/pype/nuke/lib.py @@ -207,7 +207,6 @@ def reset_resolution(): 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") try: @@ -236,6 +235,7 @@ def reset_resolution(): format_name = project["name"] + "_1" if used_formats: + check_format = used_formats[-1] format_name = "{}_{}".format( project["name"], int(used_formats[-1][-1])+1 @@ -246,6 +246,8 @@ def reset_resolution(): format_name) ) + # format_build + make_format( width=int(width), height=int(height),