3dsmax - Exporting, Batch Rendering and Scripting

3dsmax - Exporting, Batch Rendering and Scripting

Exporting Scenes to MXS

There are several ways of exporting a Max scene to Maxwell's MXS format:

  • Using the Export All and Export Selection commands in the File menu. This allows you to export animations (one MXS file per frame). This option with export all the cameras, the environment and the render options

image-20250613-101908.png

 

  • By enabling the Persistent MXS render option and rendering.

  • Using the Export a referenced MXS file ( export_to_mxs_file_24-20190828-164433.png ) button in the shelf. Note that this will not write the render options and environment settings, it will only export the selected objects and their materials and the active camera.

image-20250613-101733.png
  • Using the maxwellExportMXS or maxwellPacknGo functions from maxscript.

image-20250613-100024.png

When using the Export commands in the File menu, the following options are available:

  • Select Active Perspective Camera/Viewport: select the camera or viewport to be used as active camera when exporting the mxs file.

  • Animation: export the sequence of frames defined in the Time Output group in the render options panel. This setting is ignored if the time setting is set to Single. The frame number will be inserted into the file name typed in the export dialog, using all the format, padding and renumbering settings from the global render options.

  • Pack'n'Go: copies all the dependencies (textures, IES files etc.) next to the exported MXS file. The MXS will include all the cameras, environment and render options.

 

The scene can also be exported from maxscript via the maxwellExportMXS function, this can be useful to create script files to batch export max scenes. The maxwellExportMXS function takes the following parameters:

  • camera: the camera node to use as the active camera when exporting the MXS.

  • output: the name of the output mxs file

  • selectedObjects: controls whether the function only exports only the selected objects or all the objects in the scene.

  • animation: controls whether to export a single frame or every frame in the animation range specified by the Time Output render settings in max.

  • appendFrameNrToImg: controls whether to append the frame number to the output image.

  • packngo: if set to true the function will also call the pack n go function with the output directory as the directory in which the mxs file is exported.