From 2ef6bd9072ce6403bb3dc8aed03bc795f5f89537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Dos=C3=A9?= Date: Tue, 2 Aug 2022 22:56:13 -0400 Subject: [PATCH] Fixed an error expecting an int in 3.2 + fixed renderpaths using '//' shortcut at beginning --- dopplerender.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dopplerender.py b/dopplerender.py index 86a0157..4834f90 100644 --- a/dopplerender.py +++ b/dopplerender.py @@ -127,7 +127,7 @@ def render_thumbnails(context, dopplerendertool): } context.scene.render.filepath = dopplerendertool.dopplerender_thumbpath - context.scene.render.resolution_percentage = dopplerendertool.dopplerender_thumbsize + context.scene.render.resolution_percentage = int(dopplerendertool.dopplerender_thumbsize) context.scene.cycles.samples = 20 context.scene.cycles.use_animated_seed = False @@ -219,7 +219,9 @@ def render_full(context, doppel_sets, dopplerendertool, preprocesstime=None): # Ensure there's a numbering pattern on the path; my renderpath was "/tmp/" fullrender_pathtemplate = os.path.join(old_fpath, "####.png") - + + # Account for renderpaths that start with "//", which is a shortcut to the current directory + fullrender_pathtemplate = bpy.path.abspath(fullrender_pathtemplate) wm = bpy.context.window_manager tot = len(render_frames)