Batch Overnight Render
Renders multiple cameras (or multiple scene files) in a loop overnight, writing beauty + render-element PNGs to an organized folder structure.
- 0 reviews
- β
- downloads
- 10
- 3ds Max
- 2022β2027
- latest version
- v1.0.0
- license
- Free
Purpose
Renders multiple cameras or scene files in a loop overnight. Beauty renders and render elements are saved as PNGs in an organized folder structure.
Workflow
- The
rlBatchdialog lists the sceneβs cameras in a CheckedListBox. - Select which cameras to render and choose an output folder. You can also open Render Settings.
- By default, the dialog checks cameras in the current selection. If nothing is selected, it checks all non-hidden cameras.
- Choose Start to render the selected cameras in sequence.
Key features
Stop or cancel a batch
Press Esc while 3ds Max or the V-Ray VFB is focused to cancel the current render and stop the batch.
As a fallback, create an empty STOP.txt file in the output folder.
Renderer and PNG settings
- Optionally force V-Ray rendering.
- Choose CPU or GPU rendering with
cfg_useVRayGPU. - Select 48-bit or 24-bit PNG output.
- Enable or disable alpha.
- Set an override resolution. The default is 3840 Γ 2160.
Render elements
Choose one of three methods:
#maxβ Uses 3ds Max element paths and switches the V-Ray VFB off.#vfbβ Uses V-Rayβs Separate render channels option.#manualβ Keeps the V-Ray VFB on so you can set the path yourself.
Resume and animation
- Resume:
cfg_skipExistingskips cameras whose beauty PNG already exists. - Animation:
cfg_animationrenders a frame range instead of a single frame.
Folder mode
When cfg_sceneFolder is set, the script batches every .max file in the chosen folder. Recursive processing is optional, and autoback files are ignored.
Beauty correction
When using the VFB render-element method, the main beauty image is re-saved from the V-Ray VFB. This bakes display and ACES corrections into the output.
Diagnostics
The script logs V-Ray output state and the render-element list once. It also records every file written for each camera, making missing passes easier to identify.
Shutdown
An optional shutdown command can run after a successful batch: shutdown /s /t N.
Shutdown does not run after a manual stop.
Implementation notes
escapeEnable = trueis set at the top of the script so Esc can interrupt it.setQuietMode trueis enabled during the run to prevent dialogs from blocking the batch.- A temporary 10 Γ 10 seed bitmap is saved to disk and assigned to
output_splitbitmap. V-Rayβs split-channel writer needs a real, saved bitmap object to initialize. freeSceneBitmaps()andgc light:truerun after each camera to help prevent memory buildup during long render batches.