Batch Export

Intermediate files can be output in 3ds Max by batch exporting one or more scenes all at once, as well as one at a time.
This process is called batch export.

Executing Batch Export

Other than the file export destination, options set for each max file are used.

If an error occurs during batch export, the file in question is skipped and batch export continues.
The number of errors and associated file names are displayed in a dialog of batch processing terminates.

Independent Batch Export Using Max Script

You can execute your own batch export by using Max Script.

Sample Script

--------------------------------------------------------
Loads settings saved in the max file,
and exports after changing the output folder and file name
--------------------------------------------------------
-- Load .max file
loadMaxFile @"C:\Sample1.max" quiet:true useFileUnits:true

-- Load exporter settings saved for the scene
nw4cmax.LoadSetting()

-- Change the export destination
nw4cmax.outFolder = @"C:\Exportdir"

-- Change the export file name
nw4cmax.filename = @"Export"

-- Execute export 
-- (All nodes are exported if false is passed in the argument nw4cmax.doExport)
nw4cmax.doExport false

--------------------------------------------------------
Loads settings saved in the c3es file,
and exports everything below the specified node
--------------------------------------------------------
-- Load .max file
loadMaxFile @"C:\Sample2.max" quiet:true useFileUnits:true

-- Creates an instance of the utility script
local utils = nw4c_utils()

-- Load exporter settings saved in .c3es
utils.loadSettingFromFile @"C:\Sample2.c3es" 

-- Select node
select $Box01

-- Execute export
-- (Everything below the selected node is exported if true is passed in the argument nw4cmax.doExport)
nw4cmax.doExport true
--------------------------------------------------------


CONFIDENTIAL