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

assistant: heck 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
        - **compress** (*boolean**,* *(**optional**)*) – Compress, Write compressed .blend file
        - **relative_remap** (*boolean**,* *(**optional**)*) – Remap Relative, Remap relative paths when saving to a different directory
        - **exit** (*boolean**,* *(**optional**)*) – Exit, Exit Blender after saving
        - **incremental** (*boolean**,* *(**optional**)*) – Incremental, Save the current Blender file with a numerically incremented name that does not overwrite any existing files

bpy.ops.wm.save_userpref()
:   Make the current preferences default

bpy.ops.wm.search_menu()
:   Pop-up a search over all menus in the current context

bpy.ops.wm.search_operator()
:   Pop-up a search over all available operators in current context

bpy.ops.wm.search_single_menu(*\**, *menu_idname=''*, *initial_query=''*)
:   Pop-up a search for a menu in current context

    Parameters:
    :   - **menu_idname** (*string**,* *(**optional**,* *never None**)*) – Menu Name, Menu to search in
        - **initial_query** (*string**,* *(**optional**,* *never None**)*) – Initial Query, Query to insert into the search box

bpy.ops.wm.set_stereo_3d(*\**, *display_mode='ANAGLYPH'*, *anaglyph_type='RED_CYAN'*, *interlace_type='ROW_INTERLEAVED'*, *use_interlace_swap=False*, *use_sidebyside_crosseyed=False*)
:   Toggle 3D stereo support for current window (or change the display mode)

    Parameters:
    :   - **display_mode** (enum in [Stereo3D Display Items](bpy_types_enum_items/stereo3d_display_items.html#rna-enum-stereo3d-display-items), (optional)) – Display Mode
        - **anaglyph_type** (enum in [Stereo3D Anaglyph Type Items](bpy_types_enum_items/stereo3d_anaglyph_type_items.html#rna-enum-stereo3d-anaglyph-type-items), (optional)) – Anaglyph Type
        - **interlace_type** (enum in [Stereo3D Interlace Type Items](bpy_types_enum_items/stereo3d_interlace_type_items.html#rna-enum-stereo3d-interlace-type-items), (optional)) – Interlace Type
        - **use_interlace_swap** (*boolean**,* *(**optional**)*) – Swap Left/Right, Swap left and right stereo channels
        - **use_sidebyside_crosseyed** (*boolean**,* *(**optional**)*) – Cross-Eyed, Right eye should see left image and vice versa

bpy.ops.wm.set_working_color_space(*\**, *convert_colors=True*, *working_space=''*)
:   Change the working color space of all colors in this blend file

    Parameters:
    :   - **convert_colors** (*boolean**,* *(**optional**)*) – Convert Colors in All Data-blocks, Change colors in all data-blocks to the new working space
        - **working_space** (*enum in* *[**]**,* *(**optional**)*) – Working Space, Color space to set

bpy.ops.wm.splash()
:   Open the splash screen with release info

bpy.ops.wm.splash_about()
:   Open a window with information about Blender

bpy.ops.wm.stl_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=''*, *ascii_format=False*, *use_batch=False*, *export_selected_objects=False*, *collection=''*, *global_scale=1.0*, *use_scene_unit=False*, *forward_axis='Y'*, *up_axis='Z'*, *apply_modifiers=True*, *filter_glob='\*.stl'*)
:   Save the scene to an STL 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
        - **ascii_format** (*boolean**,* *(**optional**)*) – ASCII Format, Export file in ASCII format, export as binary otherwise
        - **use_batch** (*boolean**,* *(**optional**)*) – Batch Export, Export each object to a separate file
        - **export_selected_objects** (*boolean**,* *(**optional**)*) – Export Selected Objects, Export only selected objects instead of all supported objects
        - **collection** (*string**,* *(**optional**,* *never None**)*) – Source Collection, Export only objects from this collection (and its children)
        - **global_scale** (*float in* *[**1e-06**,* *1e+06**]**,* *(**optional**)*) – Scale
        - **use_scene_unit** (*boolean**,* *(**optional**)*) – Scene Unit, Apply current scene’s unit (as defined by unit scale) to exported data
        - **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`
            -Z – Negative Z axis.
        - **up_axis** (enum in [`'X'`, `'Y'`, `'Z'`, `'NEGATIVE_X'`, `'NEGATIVE_Y'`, `'NEGATIVE_Z'`], (optional)) –

          Up 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`
            -Z – Negative Z axis.
        - **apply_modifiers** (*boolean**,* *(**optional**)*) – Apply Modifiers, Apply modifiers to exported meshes
        - **filter_glob** (*string**,* *(**optional**,* *never None**)*) – Extension Filter

bpy.ops.wm.stl_import(*\**, *filepath=''*, *directory=''*, *files=None*, *check_existing=False*, *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=''*, *global_scale=1.0*, *use_scene_unit=False*, *use_facet_normal=False*, *forward_axis='Y'*, *up_axis='Z'*, *use_mesh_validate=True*, *filter_glob='\*.stl'*)
:   Import an STL file as an object

    Parameters:
    :   - **filepath** (*string**,* *(**optional**,* *never None**)*) – File Path, Path to file
        - **directory** (*string**,* *(**optional**,* *never None**)*) – Directory, Directory 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
        - **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
        - **global_scale** (*float in* *[**1e-06**,* *1e+06**]**,* *(**optional**)*) – Scale
        - **use_scene_unit** (*boolean**,* *(**optional**)*) – Scene Unit, Apply current scene’s unit (as defined by unit scale) to imported data
        - **use_facet_normal** (*boolean**,* *(**optional**)*) – Facet Normals, Use (import) facet normals (note that this will still give flat shading)
        - **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`
            -Z – Negative Z axis.
        - **up_axis** (enum in [`'X'`, `'Y'`, `'Z'`, `'NEGATIVE_X'`, `'NEGATIVE_Y'`, `'NEGATIVE_Z'`], (optional)) –

          Up 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`
            -Z – Negative Z axis.
        - **use_mesh_validate** (*boolean**,* *(**optional**)*) – Validate Mesh, Ensure the data is valid (when disabled, data may be imported which causes crashes displaying or editing)
        - **filter_glob** (*string**,* *(**optional**,* *never None**)*) – Extension Filter

bpy.ops.wm.sysinfo(*\**, *filepath=''*)
:   Generate system information, saved into a text file

    Parameters:
    :   **filepath** (*string**,* *(**optional**,* *never None**)*) – filepath

    File:
    :   [startup/bl_operators/wm.py:2222](https://projects.blender.org/blender/blender/src/branch/main/scripts/startup/bl_operators/wm.py#L2222)

bpy.ops.wm.tool_set_by_brush_type(*\**, *brush_type=''*, *space_type='EMPTY'*)
:   Look up the most appropriate tool for the given brush type and activate that

    Parameters:
    :   - **brush_type** (*string**,* *(**optional**,* *never None**)*) – Brush Type, Brush type identifier for which the most appropriate tool will be looked up
        - **space_type** (enum in [`'EMPTY'`, `'VIEW_3D'`, `'IMAGE_EDITOR'`, `'NODE_EDITOR'`, `'SEQUENCE_EDITOR'`, `'CLIP_EDITOR'`, `'DOPESHEET_EDITOR'`, `'GRAPH_EDITOR'`, `'NLA_EDITOR'`, `'TEXT_EDITOR'`, `'CONSOLE'`, `'INFO'`, `'TOPBAR'`, `'STATUSBAR'`, `'OUTLINER'`, `'PROPERTIES'`, `'FILE_BROWSER'`, `'SPREADSHEET'`, `'PREFERENCES'`], (optional)) – Type

    File:
    :   [startup/bl_operators/wm.py:2436](https://projects.blender.org/blender/blender/src/branch/main/scripts/startup/bl_operators/wm.py#L2436)

bpy.ops.wm.tool_set_by_id(*\**, *name=''*, *cycle=False*, *as_fallback=False*, *space_type='EMPTY'*)
:   Set the tool by name (for key-maps)

    Parameters:
    :   - **name** (*string**,* *(**optional**,* *never None**)*) – Identifier, Identifier of the tool
        - **cycle** (*boolean**,* *(**optional**)*) – Cycle, Cycle through tools in this group
        - **as_fallback** (*boolean**,* *(**optional**)*) – Set Fallback, Set the fallback tool instead of the primary tool
        - **space_type** (enum in [`'EMPTY'`, `'VIEW_3D'`, `'IMAGE_EDITOR'`, `'NODE_EDITOR'`, `'SEQUENCE_EDITOR'`, `'CLIP_EDITOR'`, `'DOPESHEET_EDITOR'`, `'GRAPH_EDITOR'`, `'NLA_EDITOR'`, `'TEXT_EDITOR'`, `'CONSOLE'`, `'INFO'`, `'TOPBAR'`, `'STATUSBAR'`, `'OUTLINER'`, `'PROPERTIES'`, `'FILE_BROWSER'`, `'SPREADSHEET'`, `'PREFERENCES'`], (optional)) – Type

    File:
    :   [startup/bl_operators/wm.py:2345](https://projects.blender.org/blender/blender/src/branch/main/scripts/startup/bl_operators/wm.py#L2345)

bpy.ops.wm.tool_set_by_index(*\**, *index=0*, *cycle=False*, *expand=True*, *as_fallback=False*, *space_type='EMPTY'*)
:   Set the tool by index (for key-maps)

    Parameters:
    :   - **index** (*int in* *[**-inf**,* *inf**]**,* *(**optional**)*) – Index in Toolbar
        - **cycle** (*boolean**,* *(**optional**)*) – Cycle, Cycle through tools in this group
        - **expand** (*boolean**,* *(**optional**)*) – expand, Include tool subgroups
        - **as_fallback** (*boolean**,* *(**optional**)*) – Set Fallback, Set the fallback tool instead of the primary
        - **space_type** (enum in [`'EMPTY'`, `'VIEW_3D'`, `'IMAGE_EDITOR'`, `'NODE_EDITOR'`, `'SEQUENCE_EDITOR'`, `'CLIP_EDITOR'`, `'DOPESHEET_EDITOR'`, `'GRAPH_EDITOR'`, `'NLA_EDITOR'`, `'TEXT_EDITOR'`, `'CONSOLE'`, `'INFO'`, `'TOPBAR'`, `'STATUSBAR'`, `'OUTLINER'`, `'PROPERTIES'`, `'FILE_BROWSER'`, `'SPREADSHEET'`, `'PREFERENCES'`], (optional)) – Type

    File:
    :   [startup/bl_operators/wm.py:2395](https://projects.blender.org/blender/blender/src/branch/main/scripts/startup/bl_operators/wm.py#L2395)

bpy.ops.wm.toolbar()
:   Undocumented, consider [contributing](https://developer.blender.org/).

    File:
    :   [star