From 808e3fb9b38471f49d8f737e3167098c8d493f3c Mon Sep 17 00:00:00 2001 From: cclauss Date: Fri, 3 May 2019 17:36:26 +0200 Subject: [PATCH] Avoid hardcoding import paths __from .tools import helpers__ should do just fine. Also declare __fr_prev__ before its first use on line 52. This is not strictly necessary but it is good defensive programming. --- blender_scripts/render.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/blender_scripts/render.py b/blender_scripts/render.py index 26e5427..8fb8ecd 100644 --- a/blender_scripts/render.py +++ b/blender_scripts/render.py @@ -3,10 +3,7 @@ import os import shutil -import sys -sys.path.append('C:\\Users\\justi\\Documents\\CodeProjects\\Primer\\blender_scripts') -sys.path.append('C:\\Users\\justi\\Documents\\CodeProjects\\Primer\\blender_scripts\\tools') -import helpers +from .tools import helpers overwrite = True @@ -46,6 +43,7 @@ def render_with_skips(start, stop): # loop through each animated object and find its # animated frames. then remove those frames from # a set containing all frames, to get still frames. + fr_prev = None still_frames = set(render_range) for obj in all_obj_fcurves.keys(): obj_animated_frames = []