# Miscellaneous

This section introduces various useful features and functions of OVITO in no particular order.

## Saving the session state

You can save your current session, including the data pipeline, viewport settings, render settings, and other configurations, to a `.ovito` state file using File ‣ Save Session State.

This allows you to:

> - Preserve your visualization setup for future use or for sharing with others.

> - Resume your work at a later time without losing your progress.

> - Create a template to apply the same data analysis pipeline and camera setup to multiple simulations.

See also

- Modifier templates

- Viewport layer templates

- Modifier snippets

## Spinner controls

A spinner widget is a user interface element for adjusting numeric values (see video on the left).

You can modify values using the following methods:

> - Click the up or down arrow to increment or decrement the value stepwise.

> - Click and hold the mouse button, then drag up or down to continuously adjust the value.

> - If the cursor reaches the screen edge while dragging, OVITO wraps it around to enable infinite scrolling.

Attention

On macOS, OVITO requires Accessibility permissions to reposition the cursor programmatically during infinite scrolling. The system will prompt you for permission when needed. You can manage this setting at any time in Apple menu ‣ System Settings ‣ Privacy & Security ‣ Accessibility.

## Data inspector

The Data Inspector is a panel located below the viewport area. It can be accessed by clicking or dragging the tab bar, shown in the screenshot on the right.

This panel provides:

> - Multiple tabs displaying the different pieces of the current dataset (list of particles, bonds, data tables, etc.).

> - A measurement tool for determining distances and angles between particles.

> - 2D data plots computed by OVITO.

Like the 3D viewports, the data inspector always displays the final state of the current data pipeline, i.e., it shows the dataset after all modifiers have been applied.

## Viewport layers

Viewport layers allow you to overlay additional information and 2D graphical elements, such as:

> - Text labels

> - Color legends

> - Coordinate tripods

> - Data plots

on top of the three-dimensional scene. OVITO offers several different layer types, which can be added to a viewport from the Viewport Layers tab of the command panel.

## Python scripting pro

OVITO Pro includes a Python scripting interface for automating analysis and visualization tasks. This is especially useful for batch-processing multiple input files or for developing custom modifiers, viewport layers, or file importers and exporters.

For details, see the OVITO Python manual, accessible from the help menu.

The integrated Python interpreter in OVITO Pro allows you to automate workflows, develop custom analysis functions, and tailor the software to your needs. You can use the Python language to write extensions for various key areas:

- Custom modifiers - Perform user-defined calculations and data transformations within the modification pipeline.

- Custom pipeline sources - Generate on-the-fly input data for a processing pipeline.

- Custom file readers - Import simulation data from unsupported file formats.

- Custom file writers - Export computed results to new file formats.

- Custom viewport layers - Overlay additional graphics or annotations in renderings.

- Custom utility applets - Add new tools and automation features to the OVITO GUI.

Python scripting in OVITO Pro provides powerful customization options, making it easy to extend the software’s functionality to fit your specific analysis and visualization needs.

See also

- Available extensions for OVITO Pro

- Python code generator