MAXScripts
MAXScripting for BATCH
3min
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 fn cleanfiles =( 	si clean deletecadblocks() 	si clean deletenotes() 	si clean deletemotion() 	si clean deleteanimlayers() 	si clean deleteretimers() 	si clean deleteemptylayers() ) cleanfiles() 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 docid\ hhnqh1ds7bsdd0bpi15sx maxscript functions from the forensic docid 4uloi3c83b z5naqivwwd 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 fn coverttocoronamtls =( allversions = maxversion() fileplace = @"c \program files\corona\corona renderer for 3ds max\\" + (allversions\[8] as string) + @"\scripts\coronaconverter ms" filein fileplace \ coronaconvertersuppressgui = true coronaconverter convertersettings silent = true coronaconverter convertscenemtlsmaps() coronaconverter convertertools fixcoronanormalgamma() coronaconverter convertertools convertbitmaptocoronabitmap() coronaconverter convertersettings silent = false \ coronaconvertersuppressgui = false ) coverttocoronamtls()