---
title: "Scripting Menu"
canonical: "https://documentation.chaos.com/space/LAV/1506771256/Scripting+Menu"
format: markdown
---
This page provides information about the Scripting menu in Chaos Vantage.


## **Menu Options**

---

**New Script** – Opens the [Script Editor window](#Script-Editor-Window) where you can write or import a python script.

**Open Script… **– Loads a python script and opens it directly in the [Script Editor window](#Script-Editor-Window).

**Recent Scripts** – Shows the last 10 recently added scripts.

**Close Script** – Closes the currently loaded script.

**Open Script Editor** – Opens the currently loaded script in the [Script Editor window](#Script-Editor-Window).

![Vantage_Scripting_Menu.png](media://e7852a31-de77-4ff3-a46f-4fa880fede1b)

> ℹ️ By default, Python scripts run in a sandbox that isolates them from the rest of the system. This also includes scripts that MCP clients run. Scripts can access only the folders and resources allowed in **Edit menu > Preferences > Scripting**.

> ✅ Sample python scripts are available in the Vantage installation folder (default: C:\Program Files\Chaos\Vantage\samples\vscript).


## **Script Editor Window**

---

Python scripting lets you query, modify and automate Vantage scenes and render through code. Scripting turns Vantage into a programmable rendering tool that fits into multiple pipelines, batch workflows and custom tools.

**Scene tab** – Tab used for loading and editing scene scripts.

**Scratchpad tab** – Tab used for testing code.

**New Script** – Creates a new python script from a default template.

**Open Script** – Loads a python script from a browser window in the Script Editor window.

**Recent Scripts** – Shows the last 10 recently added scripts.

**Save scene script and restart it** – Saves the loaded script to a file and restarts it.

**Restart scene script** – Restarts the loaded scene script.

**Reload scene script from file** – Reloads the python script file.

**Close scene script** – Closes the loaded scene script.

**Execute selection** – Runs only the selected lines of code without running the full script. Active when the Scratchpad tab is open.

![Vantage_Scripting_Editor.png](media://e234ac73-8fb1-4ba9-8453-9af4d81d846d)