MAXScripting 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 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.