- r.write_to_file(os.path.join(res_dir, r.name))
-
- scene_res.write_to_file(out_fn)
-
- def export_scene_resources(self, context, objs, resources, progress):
- from .export_object import ObjectExporter
- object_export = ObjectExporter()
- object_export.single_file = False
-
- material_atlases = {}
-
- for i, o in enumerate(objs):
- progress.push_task_slice(o.name, i, len(objs))
- object_export.export_object_resources(context, o, resources, material_atlases, progress)
- obj_name = o.name+".object"
- resources[obj_name] = object_export.export_object(context, o, resources, progress)
- progress.pop_task()