This commit is contained in:
2024-12-31 02:52:46 +08:00
9 changed files with 836 additions and 18 deletions

View File

@@ -83,8 +83,7 @@ class RenderUtil:
shutil.copy(scene_info_path, os.path.join(temp_dir, "scene_info.json"))
params_data_path = os.path.join(temp_dir, "params.json")
with open(params_data_path, 'w') as f:
json.dump(params, f)
#import ipdb; ipdb.set_trace()
json.dump(params, f)
result = subprocess.run([
'/home/hofee/blender-4.0.2-linux-x64/blender', '-b', '-P', script_path, '--', temp_dir
], capture_output=True, text=True)