user: What is Menus and how is it used in Blender Python scripting?

assistant: [image reference removed]

### Blender Menu

Splash Screen
:   Open the [Splash Screen](splash.xhtml#splash).

About Blender
:   Opens a menu displaying the following information about Blender:

    - **Version**: The Blender version.
    - **Date**: Date when Blender was compiled.
    - **Hash**: The Git Hash of the build.
      This can be useful to give to support personnel when diagnosing a problem.
    - **Branch**: Optional branch name.
    - **Windowing Environment**: On Linux, this will show either Wayland or X11 depending
      on the windowing environment that Blender is running on.
    - **Donate**: Open Blender’s [Development Fund](https://fund.blender.org/) website.
    - **What’s New**: Open the latest release notes.
    - **Credits**: Open the [credits](https://www.blender.org/about/credits/) webpage.
    - **License**: Open the [license](https://www.blender.org/about/license/) webpage.
    - **Blender Store**: Open the [Blender Store](https://store.blender.org/) website.
    - **Blender Website**: Open main [Blender](https://www.blender.org/) website.

Install Application Template
:   Install a new [application template](../../advanced/app_templates.xhtml#app-templates).

### File Menu

The options to manage files are:

New `Ctrl`-`N`
:   Clears the current scene and loads the selected application template.

Open `Ctrl`-`O`
:   [Open](../../files/blend/open_save.xhtml#bpy-ops-wm-open-mainfile) a blend-file.

Open Recent `Shift`-`Ctrl`-`O`
:   Displays a list of the most [recently opened](../../files/blend/open_save.xhtml#other-file-open-options) blend-files.
    Hovering over items will show a preview, and information about the blend-file.
    Select any of the file names in the list to open that blend-file.

    Clear Recent Files List
    :   Removes items from the recent files list.

Revert
:   Reopens the current file to its last saved version.

Recover
:   Options to recover a blend-file from the accidentally closing Blender or a crash. See:

    - [Last Session](../../files/blend/open_save.xhtml#bpy-ops-wm-recover-last-session)
    - [Auto Save](../../files/blend/open_save.xhtml#bpy-ops-wm-recover-auto-save)

---

Save `Ctrl`-`S`
:   [Save](../../files/blend/open_save.xhtml#bpy-ops-wm-save-mainfile) the current blend-file.

Save As… `Shift`-`Ctrl`-`S`
:   Opens the File Browser to specify file name and location of [save](../../files/blend/open_save.xhtml#bpy-ops-wm-save-mainfile).

Save Copy…
:   [Saves](../../files/blend/open_save.xhtml#bpy-ops-wm-save-mainfile) a copy of the current file.

Save Incremental `Ctrl`-`Alt`-`S`
:   Save the current Blender file with a numerically
    incremented name that does not overwrite any existing files.

---

Link…
:   Links data from an external blend-file (library) to the current one.
    The editing of that data is only possible in the external library.
    *Link* and *Append* are used to load in only selected parts from another file.
    See [Linked Libraries](../../files/linked_libraries/index.xhtml).

Append…
:   Appends data from an external blend-file to the current one.
    The new data is copied from the external file, and completely unlinked from it.

Data Previews
:   Tools for managing [data-block previews](../../files/blend/previews.xhtml).

---

Import
:   Blender can use information stored in a variety of other format files which are created by
    other graphics programs. See [Import/Export](../../files/import_export/index.xhtml).

Export
:   Normally you save your work in a blend-file,
    but you can export some or all of your work to a format that can be processed by other graphics programs.
    See [Import/Export](../../files/import_export/index.xhtml).

Export All Collections
:   Invokes all [configured exporters](../../scene_layout/collections/collections.xhtml#collections-exporters) for all collection.

---

External Data
:   External data, like texture images and other resources,
    can be stored inside the blend-file (packed) or as separate files (unpacked).
    Blender keeps track of all unpacked resources via a relative or absolute path.
    See [pack or unpack external data](../../files/blend/packed_data.xhtml#pack-unpack-data).

    Automatically Pack Resources
    :   Pack all currently used external files into the blend-file and automatically pack any files
        that are added later. Unchecking this option will only stop the automatic packing for new files;
        it won’t unpack existing ones.

    Pack Resources
    :   Pack all used external files into the blend-file. After running this operator and saving the
        blend-file, the external files will no longer be used – any changes in them will no longer be
        reflected in the blend-file, and you are free to move or delete them.

    Unpack Resources
    :   Export previously packed files back to external ones. You can choose whether to reuse existing
        external files or overwrite them.

    Pack Linked Libraries
    :   Pack data-blocks that are [linked](../../files/linked_libraries/link_append.xhtml) from an external
        blend-file into the current one.

    Unpack Linked Libraries
    :   Export previously packed data-blocks back to external blend-files. Existing blend-files are
        overwritten.

    Make Paths Relative
    :   Make all paths to external files [relative](../../files/blend/open_save.xhtml#files-blend-relative-paths) to the current blend-file.

    Make Paths Absolute
    :   Make all paths to external files absolute (= full path from the system’s root).

    Report Missing Files
    :   This option is useful to check if there are links to unpacked files that no longer exist.
        After selecting this option, a warning message will appear in the Info editor’s header.
        If no warning is shown, there are no missing external files.

    Find Missing Files
    :   In case you have broken links in a blend-file, this can help you to fix the problem.
        A File Browser will show up. Select the desired directory (or a file within that directory),
        and a search will be performed in it, recursively in all contained directories.
        Every missing file found in the search will be recovered.
        Those recoveries will be done as absolute paths,
        so if you want to have relative paths you will need to select *Make Paths Relative*.

Clean Up
:   Purge Unused Data
    :   Opens a dialog to remove unused data-blocks from both the current blend-file or any
        [Linked Data](../../files/linked_libraries/link_append.xhtml) (cannot be undone).
        See the [Outliner](../../editors/outliner/interface.xhtml#bpy-ops-outliner-orphans-purge) for more information.

    Manage Unused Data
    :   Opens a pop-up window of the [Outliner](../../editors/outliner/index.xhtml) in
        [Unused Data mode](../../editors/outliner/interface.xhtml#bpy-types-spaceoutliner-display-mode) which lists
        [data-blocks](../../files/data_blocks.xhtml) and other data that are unused
        and/or will be lost when the file is reloaded. It includes data-blocks which have only a fake user.
        You can add/remove the Fake User by clicking on cross/tick icon on the right side of the Outliner.

---

Defaults
:   This menu manages the startup file which is used to store the default scene,
    workspace, and interface displayed when creating a new file.

    Initially this contains the [startup scene](../../editors/3dview/startup_scene.xhtml) included with Blender.
    This can be replaced by your own customized setup.

    Save Startup File
    :   Saves the current blend-file as the startup file.

    Load Factory Settings
    :   Restores the default startup file and preferences.

    When an [Application Templates](../../advanced/app_templates.xhtml) is in use the following operators are shown:

    Load Factory Blender Settings
    :   Loads the default settings to the original Blender settings without
        the changes made from the current application template.

    Load Factory (Application Template Name) Settings
    :   Loads the default settings to the original application template.

---

Quit `Ctrl`-`Q`
:   Closes Blender. The current scene is saved to a file called “quit.blend” in Blender’s temporary directory
    (which can be found on the “File Paths” tab of the [Preferences](../../editors/preferences/file_paths.xhtml)).

### Edit Menu

Undo, Redo, Undo History
:   See [Undo & Redo](../undo_redo.xhtml).

Adjust Last Operation, Repeat Last, Repeat History
:   See [Undo & Redo](../undo_redo.xhtml).

Menu Search
:   Find a menu based on its name.

Operator Search
:   Execute an operator based on its name ([Developer Extras](../../editors/preferences/interface.xhtml#bpy-types-preferencesview-show-developer-ui) only).

Rename Active Item
:   Rename the active object or node;
    see [Rename tool](../../files/blend/rename.xhtml#tools-rename-active) for more information.

Batch Rename
:   Renames multiple data types at once;
    see [Batch Rename tool](../../files/blend/rename.xhtml#bpy-ops-wm-batch-rename) for more information.

Lock Object Modes
:   Prevents selecting objects that are in a different mode than the current one.

Preferences `Ctrl`-`Comma`
:   Open the [Preferences window](../../editors/preferences/index.xhtml).

### Render Menu

Render Image `F12`
:   Render the active scene at the current frame.

Render Animation `Ctrl`-`F12`
:   Render the animation of the active scene.

Render Sequencer Image `Alt`-`F12`
:   If a [Sequencer Scene](../../video_editing/sequencer_scene.xhtml) exists that differs from the active scene, render that scene instead.

Render Sequencer Animation `Ctrl`-`Alt`-`F12`
:   Render the animation of the [Sequencer Scene](../../video_editing/sequencer_scene.xhtml).

Render Audio
:   Mix the scene’s audio to a sound file.

View Render `F11`
:   Show the Render window. (Press again to switch back to the main Blender window.)

View Animation `Ctrl`-`F11`
:   Playback rendered animation in a separate player.

Lock Interface
:   Lock interface during rendering in favor of giving more memory to the renderer.

### Window Menu

New Window
:   Create a new window by copying the current window.

New Main Window
:   Create a new window with its own workspace and scene selection.

Toggle Window Fullscreen
:   Toggle the current window fullscreen.

Next Workspace
:   Switch to the next workspace.

Previous Workspace
:   Switch to the previous workspace.

Show Status Bar
:   Choose whether the [Status Bar](status_bar.xhtml)
    at the bottom of the window should be displayed.

Save Screenshot
:   Capture a picture of the current Blender window.
    A File Browser will open to choose where the screenshot is saved.

Save Screenshot (Editor)
:   Capture a picture of the selected Editor.
    Select the Editor by clicking `LMB` within its area after running the operator.
    A File Browser will open to choose where the screenshot is saved.

### Help Menu

See [Help Menu](../../getting_started/help.xhtml#help-menu).