<aside> 💡 Blender は基本的にUSDの上書き保存には対応していない。 実装の際は「別名で保存」などファイルが重複しないようにする。

</aside>

Issue with importing USD files via bpy.ops.wm.usd_import and python

Export Examples

bpy.ops.wm.usd_export(
                    filepath=filepath,
                    check_existing=False,
                    selected_objects_only=True,
                    # export_smooth_groups=False,
                    # smooth_group_bitflags=False,
                    export_normals=True,
                    # export_uv=True,
                )

Import Examples

bpy.ops.wm.usd_import(
			filepath=self.file_path, 
      import_cameras=True, 
      import_curves=True, 
      import_lights=True, 
      import_materials=True, 
      import_meshes=True, 
      import_volumes=True, 
      scale=1.0, 
      read_mesh_uvs=True, 
      read_mesh_colors=False, 
      import_subdiv=False, 
      import_instance_proxies=True, 
      import_visible_only=True,
      import_guide=False,
      import_proxy=True,
      import_render=True,
      set_frame_range=True,
      relative_path=True,
      create_collection=False,
      light_intensity_scale=1.0,
      mtl_name_collision_mode='MAKE_UNIQUE',
      import_usd_preview=True,
      set_material_blend=True)