Visual Studio Code - MaxScript support
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
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.
Extension name: Language MaxScript
Install in vs code : ext install language-maxscript
Comments
Syntax Coloring
Follow the instructions in the extension README
How do i get Fn to get proper
How do i get Fn to get proper highlighting in my VS code currently Fn and struct are both just plain text.
http://felipenogueira3d.com
.
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?
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.
Thanks. Done now.
Thanks. Done now.
.
Look at vs code documentation: https://code.visualstudio.com/docs/editor/tasks
Regards.
can you guide me how to "Set
can you guide me how to "Set up a vscode task" ?
Thanks