MaxExec – MaxScript Development in VS Code
Write and run MaxScript code directly from Visual Studio Code. This extension adds syntax highlighting, handy snippets, and the ability to send scripts straight to a running 3ds Max instance.
Get it on the VS Code Marketplace
-
3ds Max Instance Detection
Automatically finds running 3ds Max instances so you can send scripts without manual setup. -
Send Scripts to Max
Send entire files or selected code directly to your chosen 3ds Max session. -
Syntax Highlighting & Snippets
Supports.msand.mcrfiles, with useful snippets for functions, rollouts, structs, loops, and conditionals. -
Code Folding Markers
Supports region-based folding with MaxScript comments using-- region/-- endregion(also supports-- #region/-- #endregion). -
Hover Docs from Snippets
Shows quick hover info for known MaxScript symbols based on the curated snippet descriptions. -
Region Diagnostics
Warns whenregion/endregionmarkers are unmatched. -
File Icons
Adds icons for MaxScript-related file types for easier file browsing.
| Command | Description |
|---|---|
MaxExec: Select 3ds Max Instance |
Choose which running 3ds Max instance to target |
MaxExec: Send Full File to 3ds Max |
Sends the entire current file |
MaxExec: Send Selection to 3ds Max |
Sends only the selected code or current line |
| Shortcut | Action |
|---|---|
Ctrl+Shift+E |
Send full file |
Ctrl+Shift+S |
Send selection or current line |
Ctrl+Alt+E |
Select 3ds Max instance |
Quickly insert common MaxScript structures:
- Conditionals:
if,ifelse,ifdo - Loops:
while,for,foreach - Definitions:
fn,struct,rollout - Switches:
case
Activate these snippets in files set to MaxScript mode.
You can create manual foldable regions using comment markers:
-- region Utilities
fn myHelper value =
(
value * 2
)
-- endregionAlso supported:
-- #region UI
rollout r "Demo" ()
-- #endregion- Autodesk 3ds Max must be running.
- The included
maxexec-messanger.exetool is required to communicate with Max.
- Clone or download this extension.
- Run
npm installandnpm run build. - Launch VS Code in Extension Development Host mode.
- Open a
.msor.mcrfile and start coding.
- No 3ds Max instances found: Make sure Max is running and not blocked by firewall or permissions.
- Script didn't execute: The selected Max instance may have closed—reselect it using
MaxExec: Select 3ds Max Instance.
MIT