1<html xmlns="http://www.w3.org/1999/xhtml"> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 4<meta http-equiv="Content-Style-Type" content="text/css" /> 5<link rel="stylesheet" href="css/manpage.css" type="text/css" /> 6<title>バッチエクスポート</title> 7</head> 8<body> 9 10<h1>Batch Export</h1> 11<p> 12Intermediate files can be output in 3ds Max by batch exporting one or more scenes all at once, as well as one at a time.<br /> This process is called batch export.<br /> 13 14 15</p> 16 17 18 19<h3 id="export_batch">Executing Batch Export</h3> 20<ul> 21<li>Select <CODE>NW4C_BatchExport.ms</CODE> under [Start script] under [maxscript].</li> 22<li>Specify the max file folder and folder to write data to on the file dialog.</li> 23<li>max files are loaded and cmdl files exported automatically by the script.</li> 24</ul> 25<p>Other than the file export destination, options set for each max file are used.<BR></p> 26<p>If an error occurs during batch export, the file in question is skipped and batch export continues.<BR> The number of errors and associated file names are displayed in a dialog of batch processing terminates.</p> 27 28<h3 id="export_batch_custum">Independent Batch Export Using Max Script</h3> 29<p> 30You can execute your own batch export by using Max Script.<BR> <br />Sample Script 31</p> 32 33<pre> 34-------------------------------------------------------- 35Loads settings saved in the max file, 36and exports after changing the output folder and file name 37-------------------------------------------------------- 38-- Load .max file 39loadMaxFile @"C:\Sample1.max" quiet:true useFileUnits:true 40 41-- Load exporter settings saved for the scene 42nw4cmax.LoadSetting() 43 44-- Change the export destination 45nw4cmax.outFolder = @"C:\Exportdir" 46 47-- Change the export file name 48nw4cmax.filename = @"Export" 49 50-- Execute export 51-- (All nodes are exported if false is passed in the argument nw4cmax.doExport) 52nw4cmax.doExport false 53 54-------------------------------------------------------- 55Loads settings saved in the c3es file, 56and exports everything below the specified node 57-------------------------------------------------------- 58-- Load .max file 59loadMaxFile @"C:\Sample2.max" quiet:true useFileUnits:true 60 61-- Creates an instance of the utility script 62local utils = nw4c_utils() 63 64-- Load exporter settings saved in .c3es 65utils.loadSettingFromFile @"C:\Sample2.c3es" 66 67-- Select node 68select $Box01 69 70-- Execute export 71-- (Everything below the selected node is exported if true is passed in the argument nw4cmax.doExport) 72nw4cmax.doExport true 73-------------------------------------------------------- 74</pre> 75 76 77 78<br /> 79 80 81 82<hr><p>CONFIDENTIAL</p></body> 83</html>