# render import bpy import sys import json import base64 def convert_base64_string_to_object(base64_string): bytes = base64.b64decode(base64_string) string = bytes.decode("ascii") # return json.loads(string) return string argv = sys.argv try: argv = argv[argv.index("--") + 1 :] # scene_info_base64 = argv[0] # scene_info_bytes = base64.b64decode(scene_info_base64) # scene_info_string = scene_info_bytes.decode("ascii") scene_info_string = argv[0] # print("loading scene data", scene_info_string) bpy.context.scene.shot_info_ai = convert_base64_string_to_object(scene_info_string) bpy.ops.zs_sd_loader.load_scene() except Exception as e: print("Error:", e)