The SerialEM Script Repository

Restore Microscope State

Edit Delete


Name Restore Microscope State
Category High-Level Functions
Language SerialEM Scripting
Description Restores a microscope state (illumination, image shift, focus, mag, and optionally stage position) from the parameters saved by the "Save Microscope State" script
Author Guenter Resch
Website link

Version History

Version 1.0


This script requires additional scripts to be run – please refer to the Required Scripts section below.

Upload date February 26, 2018
Download count 549
SerialEM version ≥ 3.6


Required Scripts

The following scripts are required to run this script, either because the are called directly or they provide functions:


The state of the microscope is saved to persistent variables that live as long as a SerialEM session (regular variables only live as long as the script is running).

Various microscope parameters are not implemented yet, see comments in script.


This code can be shared and adapted under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License (