Skip to main content

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>]
ArgumentTypeRequiredDescription
inputstringYesPath to .mtlx or .mtlx.zip file
FlagTypeRequiredDescription
--outputstringYesPNG file to write; Aliases: o
--geometrystringNoPreview geometry; Aliases: g; Choices: totem, sphere, cube, plane; Default: totem
--materialstringNoMaterial name (default: last material in the document); Aliases: m
--backgroundstringNoBackdrop behind the model; none keeps the IBL lighting but leaves the PNG transparent; Aliases: b; Choices: none, environment; Default: none
--sizenumberNoImage width and height in pixels; Aliases: s; Default: 800
--browserstringNoChromium-based browser executable (default: installed Chrome, Edge, or Playwright Chromium)
--timeoutnumberNoSeconds to wait for the material to compile; Default: 60