Chapter 1 · Purpose and connection
1.2The connection
Any MCP server that runs MAXScript inside the artist's running 3ds Max will work. Tool names differ from server to server, and not every server offers all three of these:
| Need | Typical tool |
|---|---|
| Run MAXScript | A tool that takes a MAXScript string, for example max_execute_maxscript. |
| Run Python | A tool that runs Python inside 3ds Max through pymxs, for example max_execute_python_code. |
| See the result | A viewport snapshot (width, height, image format, optional frame), for example max_capture_viewport_snapshot. Without one, save the viewport to a picture file with tpaCapture (3.6). |
Some servers show each script to the artist and run it only after they approve it. With such a server, gather your reading into one script, and say in one line what a script will change before you send it.
TenPix is scripted in MAXScript: through the modifier properties and the global interfaces TnpixTool, TnpixPreset and TnpixGraph. Write every TenPix call in MAXScript. If your server only runs Python, pass the same MAXScript text to 3ds Max's MAXScript evaluator from Python with pymxs.runtime.execute("...").