user: Show practical ways to work with Bpy.Ops.Wm in a Blender add-on or script – include code.

assistant: – File Path, Path to file directory ( string , ( optional , never None ) ) – Directory, Directory of the file filename ( string , ( optional , never None ) ) – File Name, Name of the file check_existing ( boolean , ( optional ) ) – Check Existing, Check and warn on overwriting existing files filter_blender ( boolean , ( optional ) ) – Filter .blend files filter_backup ( boolean , ( optional ) ) – Filter .blend files filter_image ( boolean , ( optional ) ) – Filter image files filter_movie ( boolean , ( optional ) ) – Filter movie files filter_python ( boolean , ( optional ) ) – Filter Python files filter_font ( boolean , ( optional ) ) – Filter font files filter_sound ( boolean , ( optional ) ) – Filter sound files filter_text ( boolean , ( optional ) ) – Filter text files filter_archive ( boolean , ( optional ) ) – Filter archive files filter_btx ( boolean , ( optional ) ) – Filter btx files filter_alembic ( boolean , ( optional ) ) – Filter Alembic files filter_usd ( boolean , ( optional ) ) – Filter USD files filter_obj ( boolean , ( optional ) ) – Filter OBJ files filter_volume ( boolean , ( optional ) ) – Filter OpenVDB volume files filter_folder ( boolean , ( optional ) ) – Filter folders filter_blenlib ( boolean , ( optional ) ) – Filter Blender IDs filemode ( int in [ 1 , 9 ] , ( optional ) ) – File Browser Mode, The setting for the file browser mode to load a .blend file, a library or a special file relative_path ( boolean , ( optional ) ) – Relative Path, Select the file relative to the blend file display_type (enum in [ 'DEFAULT' , 'LIST_VERTICAL' , 'LIST_HORIZONTAL' , 'THUMBNAIL' ], (optional)) – Display Type DEFAULT Default – Automatically determine display type for files. LIST_VERTICAL Short List – Display files as short list. LIST_HORIZONTAL Long List – Display files as a detailed list. THUMBNAIL Thumbnails – Display files as thumbnails. sort_method ( enum in [ ] , ( optional ) ) – File sorting mode link ( boolean , ( optional ) ) – Link, Link the objects or data-blocks rather than appending do_reuse_local_id ( boolean , ( optional ) ) – Re-Use Local Data, Try to re-use previously matching appended data-blocks instead of appending a new copy clear_asset_data ( boolean , ( optional ) ) – Clear Asset Data, Don’t add asset meta-data or tags from the original data-block autoselect ( boolean , ( optional ) ) – Select, Select new objects active_collection ( boolean , ( optional ) ) – Active Collection, Put new objects on the active collection instance_collections ( boolean , ( optional ) ) – Instance Collections, Create instances for collections, rather than adding them directly to the scene instance_object_data ( boolean , ( optional ) ) – Instance Object Data, Create instances for object data which are not referenced by any objects bpy.ops.wm. interface_theme_preset_add ( * , name = '' , remove_name = False , remove_active = False ) ¶ Add a custom theme to the preset list Parameters : name ( string , ( optional , never None ) ) – Name, Name of the preset, used to make the path name remove_name ( boolean , ( optional ) ) – remove_name remove_active ( boolean , ( optional ) ) – remove_active File : startup/bl_operators/presets.py:119 bpy.ops.wm. interface_theme_preset_remove ( * , name = '' , remove_name = False , remove_active = True ) ¶ Remove a custom theme from the preset list Parameters : name ( string , ( optional , never None ) ) – Name, Name of the preset, used to make the path name remove_name ( boolean , ( optional ) ) – remove_name remove_active ( boolean , ( optional ) ) – remove_active File : startup/bl_operators/presets.py:119 bpy.ops.wm. interface_theme_preset_save ( * , name = '' , remove_name = False , remove_active = True ) ¶ Save a custom theme in the preset list Parameters : name ( string , ( optional , never None ) ) – Name, Name of the preset, used to make the path name remove_name ( boolean , ( optional ) ) – remove_name remove_active ( boolean , ( optional ) ) – remove_active File : startup/bl_operators/presets.py:711 bpy.ops.wm. keyconfig_preset_add ( * , name = '' , remove_name = False , remove_active = False ) ¶ Add a custom keymap configuration to the preset list Parameters : name ( string , ( optional , never None ) ) – Name, Name of the preset, used to make the path name remove_name ( boolean , ( optional ) ) – remove_name remove_active ( boolean , ( optional ) ) – remove_active File : startup/bl_operators/presets.py:119 bpy.ops.wm. keyconfig_preset_remove ( * , name = '' , remove_name = False , remove_active = True ) ¶ Remove a custom keymap configuration from the preset list Parameters : name ( string , ( optional , never None ) ) – Name, Name of the preset, used to make the path name remove_name ( boolean , ( optional ) ) – remove_name remove_active ( boolean , ( optional ) ) – remove_active File : startup/bl_operators/presets.py:119 bpy.ops.wm. lib_reload ( * , library = '' , filepath = '' , directory = '' , filename = '' , hide_props_region = True , check_existing = False , filter_blender = True , filter_backup = False , filter_image = False , filter_movie = False , filter_python = False , filter_font = False , filter_sound = False , filter_text = False , filter_archive = False , filter_btx = False , filter_alembic = False , filter_usd = False , filter_obj = False , filter_volume = False , filter_folder = True , filter_blenlib = False , filemode = 8 , relative_path = True , display_type = 'DEFAULT' , sort_method = '' ) ¶ Reload the given library Parameters : library ( string , ( optional , never None ) ) – Library, Library to reload filepath ( string , ( optional , never None ) ) – File Path, Path to file directory ( string , ( optional , never None ) ) – Directory, Directory of the file filename ( string , ( optional , never None ) ) – File Name, Name of the file hide_props_region ( boolean , ( optional ) ) – Hide Operator Properties, Collapse the region displaying the operator settings check_existing ( boolean , ( optional ) ) – Check Existing, Check and warn on overwriting existing files filter_blender ( boolean , ( optional ) ) – Filter .blend files filter_backup ( boolean , ( optional ) ) – Filter .blend files filter_image ( boolean , ( optional ) ) – Filter image files filter_movie ( boolean , ( optional ) ) – Filter movie files filter_python ( boolean , ( optional ) ) – Filter Python files filter_font ( boolean , ( optional ) ) – Filter font files filter_sound ( boolean , ( optional ) ) – Filter sound files filter_text ( boolean , ( optional ) ) – Filter text files filter_archive ( boolean , ( optional ) ) – Filter archive files filter_btx ( boolean , ( optional ) ) – Filter btx files filter_alembic ( boolean , ( optional ) ) – Filter Alembic files filter_usd ( boolean , ( optional ) ) – Filter USD files filter_obj ( boolean , ( optional ) ) – Filter OBJ files filter_volume ( boolean , ( optional ) ) – Filter OpenVDB volume files filter_folder ( boolean , ( optional ) ) – Filter folders filter_blenlib ( boolean , ( optional ) ) – Filter Blender IDs filemode ( int in [ 1 , 9 ] , ( optional ) ) – File Browser Mode, The setting for the file browser mode to load a .blend file, a library or a special file relative_path ( boolean , ( optional ) ) – Relative Path, Select the file relative to the blend file display_type (enum in [ 'DEFAULT' , 'LIST_VERTICAL' , 'LIST_HORIZONTAL' , 'THUMBNAIL' ], (optional)) – Display Type DEFAULT Default – Automatically determine display type for files. LIST_VERTICAL Short List – Display files as short list. LIST_HORIZONTAL Long List – Display files as a detailed list. THUMBNAIL Thumbnails – Display files as thumbnails. sort_method ( enum in [ ] , ( optional ) ) – File sorting mode bpy.ops.wm. lib_relocate ( * , library = '' , filepath = '' , directory = '' , filename = '' , files = None , hide_props_region = True , check_existing = False , filter_blender = True , filter_backup = False , filter_image = False , filter_movie = False , filter_python = False , filter_font = False , filter_sound = False , filter_text = False , filter_archive = False , filter_btx = False , filter_alembic = False , filter_usd = False , filter_obj = False , filter_volume = False , filter_folder = True , filter_blenlib = False , filemode = 8 , relative_path = True , display_type = 'DEFAULT' , sort_method = '' ) ¶ Relocate the given library to one or several others Parameters : library ( string , ( optional , never None ) ) – Library, Library to relocate filepath ( string , ( optional , never None ) ) – File Path, Path to file directory ( string , ( optional , never None ) ) – Directory, Directory of the file filename ( string , ( optional , never None ) ) – File Name, Name of the file files ( bpy_prop_collection of OperatorFileListElement , (optional)) – Files hide_props_region ( boolean , ( optional ) ) – Hide Operator Properties, Collapse the region displaying the operator settings check_existing ( boolean , ( optional ) ) – Check Existing, Check and warn on overwriting existing files filter_blender ( boolean , ( optional ) ) – Filter .blend files filter_backup ( boolean , ( optional ) ) – Filter .blend files filter_image ( boolean , ( optional ) ) – Filter image files filter_movie ( boolean , ( optional ) ) – Filter movie files filter_python ( boolean , ( optional ) ) – Filter Python files filter_font ( boolean , ( optional ) ) – Filter font files filter_sound ( boolean , ( optional ) ) – Filter sound files filter_text ( boolean , ( optional ) ) – Filter text files filter_archive ( boolean , ( optional ) ) – Filter archive files filter_btx ( boolean , ( optional ) ) – Filter btx files filter_alembic ( boolean , ( optional ) ) – Filter Alembic files filter_usd ( boolean , ( optional ) ) – Filter USD files filter_obj ( boolean , ( optional ) ) – Filter OBJ files filter_volume ( boolean , ( optional ) ) – Filter OpenVDB volume files filter_folder ( boolean , ( optional ) ) – Filter folders filter_blenlib ( boolean , ( optional ) ) – Filter Blender IDs filemode ( int in [ 1 , 9 ] , ( optional ) ) – File Browser Mode, The setting for the file browser mode to load a .blend file, a library or a special file relative_path ( boolean , ( optional ) ) – Relative Path, Select the file relative to the blend file display_type (enum in [ 'DEFAULT' , 'LIST_VERTICAL' , 'LIST_HORIZONTAL' , 'THUMBNAIL' ], (optional)) – Display Type DEFAULT Default – Automatically determine display type for files. LIST_VERTICAL Short List – Display files as short list. LIST_HORIZONTAL Long List – Display files as a detailed list. THUMBNAIL Thumbnails – Display files as thumbnails. sort_method ( enum in [ ] , ( optional ) ) – File sorting mode bpy.ops.wm. link ( * , filepath = '' , directory = '' , filename = '' , files = None , check_existing = False , filter_blender = True , filter_backup = False , filter_image = False , filter_movie = False , filter_python = False , filter_font = False , filter_sound = False , filter_text = False , filter_archive = False , filter_btx = False , filter_alembic = False , filter_usd = False , filter_obj = False , filter_volume = False , filter_folder = True , filter_blenlib = True , filemode = 1 , relative_path = True , display_type = 'DEFAULT' , sort_method = '' , link = True , do_reuse_local_id = False , clear_asset_data = False , autoselect = True , active_collection = True , instance_collections = True , instance_object_data = True ) ¶ Link from a Library .blend file Parameters : filepath ( string , ( optional , never None ) ) – File Path, Path to file directory ( string , ( optional , never None ) ) – Directory, Directory of the file filename ( string , ( optional , never None ) ) – File Name, Name of the file files ( bpy_prop_collection of OperatorFileListElement , (optional)) – Files check_existing ( boolean , ( optional ) ) – Check Existing, Check and warn on overwriting existing files filter_blender ( boolean , ( optional ) ) – Filter .blend files filter_backup ( boolean , ( optional ) ) – Filter .blend files filter_image ( boolean , ( optional ) ) – Filter image files filter_movie ( boolean , ( optional ) ) – Filter movie files filter_python ( boolean , ( optional ) ) – Filter Python files filter_font ( boolean , ( optional ) ) – Filter font files filter_sound ( boolean , ( optional ) ) – Filter sound files filter_text ( boolean , ( optional ) ) – Filter text files filter_archive ( boolean , ( optional ) ) – Filter archive files filter_btx ( boolean , ( optional ) ) – Filter btx files filter_alembic ( boolean , ( optional ) ) – Filter Alembic files filter_usd ( boolean , ( optional ) ) – Filter USD files filter_obj ( boolean , ( optional ) ) – Filter OBJ files filter_volume ( boolean , ( optional ) ) – Filter OpenVDB volume files filter_folder ( boolean , ( optional ) ) – Filter folders filter_blenlib ( boolean , ( optional ) ) – Filter Blender IDs filemode ( int in [ 1 , 9 ] , ( optional ) ) – File Browser Mode, The setting for the file browser mode to load a .blend file, a library or a special file relative_path ( boolean , ( optional ) ) – Relative Path, Select the file relative to the blend file display_type (enum in [ 'DEFAULT' , 'LIST_VERTICAL' , 'LIST_HORIZONTAL' , 'THUMBNAIL' ], (optional)) – Display Type DEFAULT Default – Automatically determine display type for files. LIST_VERTICAL Short List – Display files as short list. LIST_HORIZONTAL Long List – Display files as a detailed list. THUMBNAIL Thumbnails – Display files as thumbnails. sort_method ( enum in [ ] , ( optional ) ) – File sorting mode link ( boolean , ( optional ) ) – Link, Link the objects or data-blocks rather than appending do_reuse_local_id ( boolean , ( optional ) ) – Re-Use Local Data, Try to re-use previously matching appended data-blocks instead of appending a new copy clear_asset_data ( boolean , ( optional ) ) – Clear Asset Data, Don’t add asset meta-data or tags from the original data-block autoselect ( boolean , ( optional ) ) – Select, Select new objects active_collection ( boolean , ( optional ) ) – Active Collection, Put new objects on the active collection instance_collections ( boolean , ( optional ) ) – Instance Collections, Create instances for collections, rather than adding them directly to the scene instance_object_data ( boolean , ( optional ) ) – Instance Object Data, Create instances for object data which are not referenced by any objects bpy.ops.wm. memory_statistics ( ) ¶ Print memory statistics to the console bpy.ops.wm. obj_export ( * , filepath = '' , check_existing = True , filter_blender = False , filter_backup = False , filter_image = False , filter_movie = False , filter_python = False , filter_font = False , filter_sound = False , filter_text = False , filter_archive = False , filter_btx = False , filter_alembic = False , filter_usd = False , filter_obj = False , filter_volume = False , filter_folder = True , filter_blenlib = False , filemode = 8 , display_type = 'DEFAULT' , sort_method = '' , export_animation = False , start_frame = -2147483648 , end_frame = 2147483647 , forward_axis = 'NEGATIVE_Z' , up_axis = 'Y' , global_scale = 1.0 , apply_modifiers = True , apply_transform = True , export_eval_mode = 'DAG_EVAL_VIEWPORT' , export_selected_objects = False , export_uv = True , export_normals = True , export_colors = False , export_materials = True , export_pbr_extensions = False , path_mode = 'AUTO' , export_triangulated_mesh = False , export_curves_as_nurbs = False , export_object_groups = False , export_material_groups = False , export_vertex_groups = False , export_smooth_groups = False , smooth_group_bitflags = False , filter_glob = '*.obj;*.mtl' , collection = '' ) ¶ Save the scene to a Wavefront OBJ file Parameters : filepath ( string , ( optional , never None ) ) – File Path, Path to file check_existing ( boolean , ( optional ) ) – Check Existing, Check and warn on overwriting existing files filter_blender ( boolean , ( optional ) ) – Filter .blend files filter_backup ( boolean , ( optional ) ) – Filter .blend files filter_image ( boolean , ( optional ) ) – Filter image files filter_movie ( boolean , ( optional ) ) – Filter movie files filter_python ( boolean , ( optional ) ) – Filter Python files filter_font ( boolean , ( optional ) ) – Filter font files filter_sound ( boolean , ( optional ) ) – Filter sound files filter_text ( boolean , ( optional ) ) – Filter text files filter_archive ( boolean , ( optional ) ) – Filter archive files filter_btx ( boolean , ( optional ) ) – Filter btx files filter_alembic ( boolean , ( optional ) ) – Filter Alembic files filter_usd ( boolean , ( optional ) ) – Filter USD files filter_obj ( boolean , ( optional ) ) – Filter OBJ files filter_volume ( boolean , ( optional ) ) – Filter OpenVDB volume files filter_folder ( boolean , ( optional ) ) – Filter folders filter_blenlib ( boolean , ( optional ) ) – Filter Blender IDs filemode ( int in [ 1 , 9 ] , ( optional ) ) – File Browser Mode, The setting for the file browser mode to load a .blend file, a library or a special file display_type (enum in [ 'DEFAULT' , 'LIST_VERTICAL' , 'LIST_HORIZONTAL' , 'THUMBNAIL' ], (optional)) – Display Type DEFAULT Default – Automatically determine display type for files. LIST_VERTICAL Short List – Display files as short list. LIST_HORIZONTAL Long List – Display files as a detailed list. THUMBNAIL Thumbnails – Display files as thumbnails. sort_method ( enum in [ ] , ( optional ) ) – File sorting mode export_animation ( boolean , ( optional ) ) – Export Animation, Export multiple frames instead of the current frame only start_frame ( int in [ -inf , inf ] , ( optional ) ) – Start Frame, The first frame to be exported end_frame ( int in [ -inf , inf ] , ( optional ) ) – End Frame, The last frame to be exported forward_axis (enum in [ 'X' , 'Y' , 'Z' , 'NEGATIVE_X' , 'NEGATIVE_Y' , 'NEGATIVE_Z' ], (optional)) – Forward Axis X X – Positive X axis. Y Y – Positive Y axis. Z Z – Positive Z axis. NEGATIVE_X -X – Negative X axis. NEGATIVE_Y -Y – Negative Y axis. NEGATIVE_Z -