maxscript experiments (for now)
  • MAXScript 100%
2023-11-16 19:18:32 +01:00
.vscode first commit 2023-10-29 21:10:26 +01:00
image_blueprint.ms first commit 2023-10-29 21:10:26 +01:00
LICENSE first commit 2023-10-29 21:10:26 +01:00
nomad-toolbox.ms first commit 2023-10-29 21:10:26 +01:00
README.md update installation instructions 2023-11-16 19:18:32 +01:00

Max Scripts

Nothing serious for now (:

Environment setup

If you use other editor or work directly inside 3Ds Max's script editor, then you can skip this section.

This repo includes a .vscode folder which contains the following files:

  • tasks.json
  • settings.json

And it requires the following extensions to be installed:

  • Language MaxScript by Atelier Bump
  • Task Buttons by spencerwmiles

This is required in order to use VSCode as an external editor for Max Scripts in Windows.

A third party tool is required to do the magic behind the scenes: MXSPyCOM by JeffHanna

For its setup, better follow the instructions they provide in their wiki.

For MXSPyCOM's to work, you need to:

  • Move the MXSPyCOM exe file to the C:\Program Files\MXSPyCOM folder
  • Create a task for your text editor of choice. In our case since we are on Windows, VSCode is the one we chose.
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "exec_maxscript",
            "type": "shell",
            "command": "C:\\Program Files\\MXSPyCOM\\MXSPyCOM.exe",
            "args": [
                "-s",
                "${file}"
            ],
            "presentation": {
                "echo": false,
                "reveal": "never",
                "focus": false,
                "panel": "dedicated"
            },
            "problemMatcher": []
        }
    ]
}
  • Lastly if you want to avoid having to use the run task command all the time, you can add a button to your toolbar. Add the following code to your .vscode/settings.json file:
{
    "VsCodeTaskButtons.showCounter": true,
    "VsCodeTaskButtons.tasks": [
        {
            "label": "Run MaxScript",
            "task": "exec_maxscript",
            "tooltip": "Execute the current maxscript file into 3Ds Max"
        },
    ]
}