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.

Example One

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 SiNiScript MAXScript functions from the Forensic plugin.

) The last bracket closes the function.

cleanFiles() calls the function.

Example Two

Another example of a simple MAXScript is using the Corona Material Converter from Chaos, but adapting it to run in silent mode.




Updated 08 Apr 2022
Did this page help?