setup_lighting
Apply lighting presets like three-point, sun, soft studio, night, or metal, replacing prior lights. Scale strength, target objects, and tint for product shots.
Instructions
Replace the studio lights with a preset. Lights are named bl_light_*; earlier ones are deleted first,
so a second call never doubles them. Other lights in the scene are not touched.
Presets: three_point (key, fill, rim), sun (one hard sun), soft_studio (large soft panels, even light),
night (dim blue moon and a warm lamp), metal (for metal and glossy product shots: an interior HDRI that the surface
reflects, a key spot and a rim spot). strength scales all of them (1 is a normal exposure).
metal also replaces the world: set_world hdri='interior' at strength 0.6, hidden from the camera, so the backdrop keeps the colour it had.
The answer has it under world; call set_world afterwards for another HDRI, rotation or backdrop. The other presets
do not touch the world: with area lights only, metal has nothing to reflect and renders black or blown.
target is a list of object names; light size and distance follow their box (default: all visible geometry).
The key light stands front-right (azimuth 40) so it suits the default set_camera view.
color tints the lights: '#rrggbb' or [r, g, b] (0-1). Pair it with set_world for the background.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| preset | No | three_point | |
| target | No | ||
| strength | No |