mtlx render
mtlx render
Render a .mtlx or .mtlx.zip file to a PNG image using a local headless browser
Usage
mtlx render <input> --output <output> [--geometry <geometry>] [--material <material>] [--background <background>] [--size <size>] [--browser <browser>] [--timeout <timeout>]
| Argument | Type | Required | Description |
|---|---|---|---|
input | string | Yes | Path to .mtlx or .mtlx.zip file |
| Flag | Type | Required | Description |
|---|---|---|---|
--output | string | Yes | PNG file to write; Aliases: o |
--geometry | string | No | Preview geometry; Aliases: g; Choices: totem, sphere, cube, plane; Default: totem |
--material | string | No | Material name (default: last material in the document); Aliases: m |
--background | string | No | Backdrop behind the model; none keeps the IBL lighting but leaves the PNG transparent; Aliases: b; Choices: none, environment; Default: none |
--size | number | No | Image width and height in pixels; Aliases: s; Default: 800 |
--browser | string | No | Chromium-based browser executable (default: installed Chrome, Edge, or Playwright Chromium) |
--timeout | number | No | Seconds to wait for the material to compile; Default: 60 |