# Multi-Camera Render desktop app The desktop app renders your Modo scene from several cameras in one batch. It runs Modo quietly in the background, so you never see Modo's main window or its render window. This keeps your screen clear while the images render. ## Contents - [Requirements](#requirements) - [Start the app](#start-the-app) - [Render cameras](#render-cameras) - [Email notifications](#email-notifications) - [Memory and processes](#memory-and-processes) - [Configuration and compatibility](#configuration-and-compatibility) - [Verification](#verification) - [Run or rebuild from source](#run-or-rebuild-from-source) ## Requirements - Windows - Modo installed and licensed (tested with Modo 17.1v1) - A saved `.lxo` scene file You do not need a separate Python installation or the Modo GUI plug-in. ## Start the app 1. Open `Multi-Camera Render.exe` in the `dist` folder. If you use the portable ZIP, extract it first. ## Render cameras 1. Check the **Modo** path. - The app detects `modo_cl.exe` automatically. - If it does not, click **Modo > Browse**. Select `modo_cl.exe` in your Modo installation. - For Modo 17.1, the normal path is `C:\Program Files\Modo17.1v1\modo\modo_cl.exe`. 2. Select the scene. 1. Click **Scene > Browse**. Select a saved `.lxo` file. You can also type the path and click **Load / Refresh Scene**. 2. The app starts Modo in headless mode for a short time. It reads the cameras and the scene render range. Then it closes that process. 3. Check the cameras to render. 4. Enter **First**, **Last**, and **Step**. 5. Choose an output folder. 6. Click **Render Cameras**. The progress display shows the camera, the frame number, and the number of completed camera frames. > **Important:** Save your scene changes in Modo before you open or refresh the scene in the app. The app reads the saved file. ### Buttons | Button | Action | | ------ | ------ | | **Open Output** | Opens the batch directory. | | **View Log** | Opens the Modo worker log. | | **Stop** | Stops only the worker that this app started. Completed images stay on disk. The active frame can be incomplete. | If you close the app, it stops the active worker. ### Output rules - Each batch uses a new directory. Camera names and output names have unique IDs. - Enabled scene render outputs keep their formats. A blank format becomes PNG. - The resolution and the render quality come from the saved scene. ## Email notifications You can receive an email when a render completes or fails. Notifications are off by default. ### Set up 1. Open **Email Settings**. - Desktop app: Click **Email Settings**. - Native Modo panel: Click **Email Settings** or run `smcr.emailSettings`. Both open the same window and use the same settings. 2. Select **Email render notifications**. 3. Select **Render completed**, **Render error**, or both. 4. Enter these values: - One recipient address - A From address - The SMTP server, port, security mode, username, and password from your mail service 5. (Optional) Select **Remember password for this Windows account**. 6. (Optional) Click **Send Test Email**. 7. Save the settings. **SMTP notes:** - STARTTLS usually uses port 587. - SSL/TLS usually uses port 465. - The app supports SMTP username and password authentication. This includes SMTP passwords and app passwords from your provider. - Accounts that use OAuth only need a compatible SMTP relay. **Password notes:** - Windows DPAPI encrypts a remembered password. Only the Windows account that saved it can use it. - If you do not select the remember option, the desktop app keeps the password only for the current session. - Native Modo needs a remembered password for authenticated SMTP. Its settings helper exits after it saves. **Test email:** **Send Test Email** sends a real email to the recipient. It is the only action that sends a test. Opening or saving the settings does not send email. ### What the notices contain A completion notice or an error notice contains: - Scene path - Frame range - Camera names - Output folder - Elapsed time - Render error (if any) The notice does **not** contain render images, logs, or traceback files. The desktop app reports progress in camera frames. A native failure notice can show an unknown number of partial frames. ### Delivery behavior - Delivery runs in a background thread after the render result is known. This includes the time before a render-error dialog waits for input. - A mail server failure shows separately. It does not change the render result. - The desktop app shows the delivery status next to **Email Settings**. The native panel has **Email Status** (`smcr.emailStatus`). - "Accepted by mail server" does not guarantee delivery to the inbox. Check your spam filter if the email does not arrive. - The app does not retry automatically. This prevents duplicate notices after an unclear server response. ### When no notice is sent - Desktop scene inspection does not send a notice. - **Stop** does not send a notice. - In native Modo, a cancel that Modo reports as a render error can send an error notice. - If you close the desktop app while an email is sending, the app waits for the SMTP operation to finish. The wait has a time limit. ### Where the data is stored | Data | Location | | ---- | -------- | | Shared settings | `%LOCALAPPDATA%\MultiCameraRender\email.json` | | Delivery results | `%LOCALAPPDATA%\MultiCameraRender\notifications` | Delivery results contain status and sanitized errors. They do not contain credentials. The app never writes passwords as plain text to the settings file, the job files, or the notification logs. ## Memory and processes - The app starts `modo_cl.exe`, not `modo.exe`. - When the app is idle after a scene scan or a completed render, no Modo process stays open. - A render worker loads the scene once. It renders one frame at a time across the selected cameras. Then it exits and releases its memory. The scene, textures, and geometry still use RAM. Depending on the renderer, they can also use GPU memory. Headless mode removes the overhead of the Modo main GUI. It does not remove the render engine. It does not guarantee a specific memory reduction. If you have Modo open separately, close it yourself to free its memory. This app does not close other Modo sessions. ## Configuration and compatibility ### Configuration By default, the worker uses clean render preferences and the built-in resource files of Modo. To use installed kits, custom path aliases, preferences, or extra config imports: 1. Select **Use Modo's saved configuration**. If you do not select this option, unrelated kit startup callbacks do not run in the worker. Other configuration behavior: - Resource lookup also uses the directory of the scene. You must still resolve missing assets normally. - The worker always loads its bundled render code. It does this even if an older Multi-Camera Render kit is installed. - The worker does not save the scene. It does not overwrite saved Modo preferences. - Job descriptions, logs, and status files stay in the Windows temporary directory in `smcr_*` folders. Use them for troubleshooting. - The app remembers the Modo executable, the output folder, and the config choice. ### Compatibility | Item | Status | | ---- | ------ | | Modo 17.1v1 on Windows | Tested | | Modo 801 | **Not supported** | | Other Modo releases | Not verified | | Modo built-in renderer | Supported | | Third-party render engines | Not implemented | | Pass-group queues | Not implemented | | Animated camera transforms | Supported | | Animated or linked render-camera, range, or output controls | Rejected | The app rejects animated or linked controls. This prevents the batch settings from being replaced during rendering. Modo 801 uses Python 2.7. Its scripting modules do not meet the requirements of this software. The Python bundled with the EXE does not replace the Python in Modo. Since version 1.1.1, the app shows a message when you select an older Python host. The app renders one frame per call, so it can show progress between frames. This can add more overhead for each frame than the continuous animation command of Modo. ## Verification **Tested with Modo 17.1v1:** - A saved scene opened in headless mode. - The app found two cameras. - The app rendered frames 1 and 3 for both cameras. - The app saved eight PNG files across the color and alpha outputs. - The hash of the source scene did not change. - The worker processes exited. Also passed: invalid scene handling, worker termination, and desktop layout construction. > **Note:** Automated checks do not replace a visual inspection of the desktop layout. The desktop app uses its own widgets, not the Modo Forms system. It has a compact charcoal interface with Modo-like spacing, fields, and buttons. ## Run or rebuild from source ### Run the app Use one of these methods (system Python required): - Open `standalone/app.pyw`. - Open `Launch Multi-Camera Render.cmd`. ### Run the tests | Command | Purpose | Notes | | ------- | ------- | ----- | | `python test_core.py` | Core checks | | | `python test_email.py` | Email regression checks | Uses stub SMTP. Sends no real email. | | `python verify_native_email.py` | Native email hook checks | Uses a stub sender. Sends no real email. | | `python verify_headless.py` | Real Modo integration checks | Creates disposable files in `verification-headless`. | | `python verify_native_ui.py` | Native Modo window regression | Uses a separate GUI process and a disposable configuration. | ### Build 1. Install PyInstaller: ``` python -m pip install --target .build/packaging pyinstaller ``` 2. Build the desktop EXE: ``` python build_app.py ``` 3. Build the Modo kit: ``` python build_package.py ``` The kit includes the EXE from step 2 as its email-settings helper. Always do step 2 first. The process and pipe integration follows the Foundry [headless Modo documentation](https://learn.foundry.com/modo/developers/latest/SDK/pages/general/systems/Headless.html).