# Multi-Camera Render for Modo Multi-Camera Render saves you from rendering each camera by hand. Pick the cameras you want and the frames you want. The software then renders all of them in one batch and saves the images in neat folders. It comes in two forms: - **Desktop app (Windows):** A separate program that renders your scene without opening Modo's main window. See [HEADLESS.md](HEADLESS.md). - **Modo kit:** A panel inside Modo that looks like the rest of Modo. You do not need to install anything else. **Download:** [Latest release](https://github.com/samsamthecodeman/modo-multi-camera-renderer/releases/latest) Version 1.2.0 includes the desktop app, the native Modo kit, and optional email notifications for completion and errors. ## Contents - [Compatibility](#compatibility) - [Install the native kit](#install-the-native-kit) - [Render with the native kit](#render-with-the-native-kit) - [Output structure](#output-structure) - [Email notifications](#email-notifications) - [Stop a render](#stop-a-render) - [Limitations](#limitations) - [Verification](#verification) - [Source](#source) - [Release notes](#release-notes) ## Compatibility | Item | Status | | ---- | ------ | | Modo 17.1v1 on Windows | Tested | | Modo 801 | **Not supported** | | Other Modo versions and other operating systems | Not tested | | Modo built-in renderer | Supported | | Third-party render engines (for example Octane, V-Ray) | Not integrated and not tested | Modo 801 uses Python 2.7. Python 2.7 does not have the modules and APIs that this software needs. The desktop app includes its own modern Python. The render worker still runs in the Python of Modo. The desktop app does not make Modo 801 compatible. ## Install the native kit ### Option A: Install the .lpk file (recommended) 1. Download `MultiCameraRender-1.2.0.lpk`. 2. Drag the file onto the Modo window. 3. Restart Modo when Modo asks you to. The kit includes the helper app for email settings. The standalone EXE also works by itself. ### Option B: Install manually 1. Copy the `MultiCameraRender` folder into your Modo Kits folder. A typical folder is `%APPDATA%\Luxology\Kits`. 2. Make sure this file exists: `Kits\MultiCameraRender\index.cfg`. 3. Restart Modo. ## Render with the native kit **Before you start:** Enable at least one Render Output in the Shader Tree. 1. In the Modo command entry, run `smcr.open`. A pinned native form opens. - You can bind this command to a key in the Input Editor. - A launcher is also in the general Render Properties form. 2. Set the frame range. Do one of these: - Enter **First Frame**, **Last Frame**, and **Frame Step**. - Click **Use Scene Render Range**. The range includes the last frame if the last frame falls on a step. 3. Select the cameras. Use the checkboxes, or use these buttons: - **Select All** - **Select None** - **Use Selected Camera Items** 4. Click **Refresh Cameras** if you add, delete, or rename a camera, or if you switch scenes. 5. Set **Output Folder**. 6. Click **Review Batch**. Check the camera names and the frame count. 7. Click **Render Cameras**. ### How the render works - The kit renders the cameras one after the other. - The kit uses the resolution, materials, lighting, and quality settings of the current scene. - Enabled Render Outputs keep their image formats. An output with no format uses PNG. - The kit renders with the Modo command `render.animation`. ### What the kit restores After the batch, the kit restores these settings: - Original camera - Render range - Frame step - Output pattern - Output paths - Formats - Timeline time The kit restores them even if the render command fails. The scene can stay marked as modified, because the kit changes settings temporarily. The kit does not save your scene. ## Output structure Each run creates a new directory: ``` Output Folder/ batch_YYYYMMDD_HHMMSS_uniqueID/ batch.json c_Camera_A_uniqueID/ c_Final_Color_Output_uniqueID.0001.png c_Final_Color_Output_uniqueID.0002.png c_Camera_B_uniqueID/ ... ``` - The unique IDs prevent name collisions when cameras or outputs have the same name. - The kit enforces frame numbering during the batch. This includes separate stereo-eye names. - `batch.json` records the completed cameras, the stopped camera, and any restoration errors. ## Email notifications You can receive an email when a render completes or fails. 1. Open **Email Settings**. - Desktop app: Click **Email Settings**. - Native Modo kit: Click **Email Settings** or run `smcr.emailSettings`. 2. Enter the recipient address and your SMTP server credentials. 3. Enable the completion notice, the error notice, or both. 4. Save the settings. Both interfaces use the same settings. **Password storage:** - You can select **Remember password for this Windows account**. Windows account encryption protects the saved password. - The native Modo kit needs a remembered password for authenticated SMTP. - The desktop app can keep the password in memory for the current session only. For full details, see [Email notifications in HEADLESS.md](HEADLESS.md#email-notifications). ## Stop a render The native kit renders in one process. It uses the progress and cancel interface of Modo. There is no separate background queue and no custom stop button. - If Modo reports a cancel as an error, the rest of the batch stops. The kit restores your settings. - Images that are already rendered stay on disk. - A cancel in Modo can cause an error notice by email. > **Not verified:** No one has manually tested cancellation in the GUI. ## Limitations - The kit rejects animated or channel-linked controls for the render camera, the render range, and the outputs. This prevents changes to your animation and prevents a camera switch from overriding the batch. - Camera transform animation is supported. - The kit does not queue pass groups. It renders the current scene state for the selected cameras. ## Verification **Test environment:** Modo 17.1v1 on Windows, with the actual built-in renderer. **Test result:** Two cameras, frames 1 and 3 (step 2), color and alpha outputs. The test saved eight PNG files. The original render settings were restored. The camera checkbox selection was kept. Other checks: - Kit discovery and command registration passed in an isolated configuration. - Six Python tests cover these cases: invalid input, negative-frame counting, cancellation propagation, restoration errors, duplicate names, and different directories for repeated batches. - In version 1.1.1, a separate Modo 17.1 GUI process ran `smcr.open`, camera selection, and the corrected palette-opening commands. Run the Python tests from this directory: ``` python test_core.py ``` **Known gaps:** - Screenshot-based inspection is blocked. The Windows computer-use runtime fails to start (`CreateProcessWithLogonW failed: 32`). - Other Modo releases and other operating systems are not tested. ## Source | File | Purpose | | ---- | ------- | | `MultiCameraRender/scripts/lxserv/smcr_plugin.py` | Loads the native commands from `scripts/smcr_commands.py` | | `MultiCameraRender/scripts/smcr_core.py` | Validation and batch execution | | `MultiCameraRender/scripts/smcr_backend.py` | Shared Modo renderer adapter | | `MultiCameraRender/scripts/smcr_email.py` | SMTP, message format, shared email settings, encrypted password storage | | `MultiCameraRender/ui.cfg` | Palette definition | | `standalone/` | Desktop app, process runner, and headless worker | ### Build 1. Run `python build_app.py`. This builds the desktop EXE and ZIP. 2. Run `python build_package.py`. This builds the kit LPK and ZIP. The kit includes the desktop EXE for its email-settings window. Both build scripts exclude test renders and bytecode caches. ### Email tests These tests do not send real email. | Command | Purpose | | ------- | ------- | | `python test_email.py` | Tests email delivery with stub transports | | `python verify_native_email.py` | Verifies the native completion and error hooks in Modo with a stub sender | ### Foundry documentation used - [Forms and plug-ins](https://learn.foundry.com/modo/developers/latest/SDK/pages/ui/User%20Interface%20and%20Plug-Ins.html) - [Form Command List](https://learn.foundry.com/modo/developers/latest/sdk/pages/examples/Form%20Command%20List%20example.html) - [Render automation](https://learn.foundry.com/modo/developers/latest/SDK/pages/tutorials/Network%20Rendering.html) - [Kit packaging](https://learn.foundry.com/modo/developers/latest/SDK/pages/general/general/Kits.html) ## Release notes **1.1.1:** `smcr.open` opens a pinned native form. Before this fix, it opened an unavailable viewport. This caused an empty `(none)` window and error `8000001c`. The alternate palette definition now uses a correct single-viewport layout. After you update the kit, restart Modo. Modo then reloads the Python commands.