From 9d54586973030d8fa2a16cf6d5f7011376ea6603 Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Tue, 26 Nov 2019 12:23:21 -0500 Subject: [PATCH] Blender: Fix injection of params --- src/windows/views/blender_listview.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows/views/blender_listview.py b/src/windows/views/blender_listview.py index fb97534a36..706ad861ff 100644 --- a/src/windows/views/blender_listview.py +++ b/src/windows/views/blender_listview.py @@ -530,7 +530,7 @@ def inject_params(self, path, frame=None): script_body = f.read() # modify script variable - script_body = script_body.replace("#INJECT_PARAMS_HERE", user_params) + script_body = script_body.replace("# INJECT_PARAMS_HERE", user_params) # Write update script with open(path, "w", encoding="UTF-8", errors="strict") as f: @@ -719,7 +719,7 @@ def Render(self, blend_file_path, target_script, preview_mode=False): # Shell the blender command to create the image sequence command_get_version = [self.blender_exec_path, '-v'] command_render = [self.blender_exec_path, '-b', self.blend_file_path, '-P', self.target_script] - + # debug info # NOTE: If the length of the command_render list changes, update to match! log.info("Blender command: {} {} '{}' {} '{}'".format(*command_render))