MAXScript for BATCH
The SiNi BATCH script works with headless MAXScripts, meaning they do not have additional code to load dialogue boxes or perform additional actions. The MAXScripts must be capable of running from start to finish with no human interface.
Below is an example of a headless MAXScript, in this case, the Clean tool.
The top line is the function (fn) followed by the function name (cleanFiles) and = ( is the start of the function.
The middle lines call each of the functions to perform. In this case, it is calling MAXScript functions from the plugin.
) The last bracket closes the function.
cleanFiles() calls the function.
Another example of a simple MAXScript is using the Corona Material Converter from Chaos, but adapting it to run in silent mode.