MaxScript vs Max Plugin in C++



Written by Kevin Wafer                                                                         Contact : kevinwafer@kevinwafer.com


(c) Copyright Kevin Wafer 2008.                                    First version 20th Sept 2008. Last edit 20th Sept 2008.


Ask questions about this tutorial on the GameArtist.net forum.




Welcome to the MaxScript vs Max Plugin page!

Here I shall show you how different (or similar!) programming a Max plugin is compared to writing the same tool in MaxScript.

Please feel free to email any suggestions or feedback! It will be very much welcomed.





1. EXTREME BASICS


1a. What's the difference between a plugin and a script

Short answer

Q: What is different about a plugin compared to a script
A: A script is written in a simple programming language, a plugin is written in C++

Q: What's the advantage to a plugin?
A: The plugin will perform faster.


Long answer

Writing a script can be fast to write, simple and easy to create, and great for small tasks. Scripts are also very quick to test.

Plugins often require longer to develop, and can be a nuisance for a programmer to have to take the time out to write. A script can be written by a technically competant artist, or a technical artist (for the more complicated tasks), artists which are very close to the problem that requires solving. For tasks that require brute force and massive computation, a plugin will be faster at doing this task.

For the developer, plugins provide an important functionality, they are compiled, obfuscated so that any clever code you write is mostly secure from people stealing it. One of the issues with scripts is that when you distribute them, other people can take the parts of your code that took a while to figure out, and use it in their own scripts and not give due credit. Also as plugins are written in C++, the programmer works in an environment that they are comfortable with, and can use code and libraries they have previously written.

Perhaps the most important win for plugins is that you have a deeper access to the underlaying workings of Max. Many of the functions of the Max SDK are just not available in MaxScript or even have an equivalent.





Ask questions about this tutorial on the GameArtist.net forum.

Kevin Wafer has been an industry professional since 1994.
You can contact him at kevinwafer@googlemail.com


Back to menu