ScriptSpot

Script

Visual Studio Code - MaxScript support

By Atelier Bump · 2017-05-20

Version
1.x
Date updated
2017-05-20
Votes
6
Download
Download
Description
MaxScript language support

Autodesk 3ds Max Scripting language (MaxScript) support for vs code.

Features

  • Syntax highlight.
  • Code autocompletion; for keywords, primitives, generic functions, structDefs, interfaces and classes.
  • Snippets for most used code blocks.
  • Customized theme to match MaxScript elements diversity.
  • Help command (*MaxScript help. Accessible from the right-click menu.*): Select a keyword and open related online documentation.
  • Basic implementation of "Go to" and code navigation.

Executing MaxScript

  • MXSPyCOM project allow for editing & execution of 3ds Max MaxScript and Python files from external code editors.
  • Get it here: [MXSPyCOM by Jeff Hannna](https://github.com/JeffHanna/MXSPyCOM)
  • Follow the configuration guide to register the COM server.
  • Set up a vscode task:

 --json { "version": "0.1.0", "command": "C:/MXSPyCOM/MXSPyCOM.exe", "isShellCommand": false, "args": ["-f"], "showOutput": "always", "tasks": [ { "taskName": "Execute in Max", "args": ["${file}"], "suppressTaskName": true } ] } 

  • Run the task, enjoy the 3ds max listener throwing errors.

Contribute

GitHub

Note: MaxScript Structure is to say at least, chaotic. I've done my best to organize structs, classes, interfaces and so on. However the grammar is usable enough.

Additional Info

Extension name: Language MaxScript Install in vs code : ext install language-maxscript
Comments (7)

pepetd · 2019-02-26

How do i get Fn to get proper highlighting in my VS code currently Fn and struct are both just plain text.

Syntax Coloring

Atelier Bump · 2019-02-28

Follow the instructions in the extension README

.

Atelier Bump · 2018-01-10

Thanks. That would be nice a nice addition, but is beyond my knowledge and the time I can spend learning how to do it... Easy answer: a skilled JS/TypeScript programmer.
Regards.

Code navigation?

Martin Breidt · 2018-01-10

Nice extension, thank you!

What would it take to enable the Code Navigation features for MAXScript? I am mostly interested in the 'Go to implementation' function.

fajar · 2017-08-13

Thanks. Done now.

fajar · 2017-08-12

can you guide me how to "Set up a vscode task" ?

Thanks