Set Key Light Distance
set_key_light_distanceSet the key light distance from the model origin while maintaining its current azimuth and elevation angles.
Instructions
Set the distance of the key light from the model origin. Preserves current azimuth and elevation angles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| distance | Yes | Distance from model origin (positive number, units) |
Implementation Reference
- server.js:2760-2784 (registration)Registration of the 'set_key_light_distance' tool via mcpServer.registerTool() with input schema (distance: positive number) and handler
mcpServer.registerTool( 'set_key_light_distance', { title: 'Set Key Light Distance', description: 'Set the distance of the key light from the model origin. Preserves current azimuth and elevation angles.', inputSchema: { distance: z.number().positive().describe('Distance from model origin (positive number, units)') } }, async ({ distance }) => { routeToCurrentSession({ type: 'setKeyLightDistance', distance: distance }); return { content: [ { type: 'text', text: `Key light distance set to ${distance} units` } ] }; } ); - server.js:2769-2784 (handler)Handler function for set_key_light_distance that routes a 'setKeyLightDistance' command to the current session's browser client via WebSocket
async ({ distance }) => { routeToCurrentSession({ type: 'setKeyLightDistance', distance: distance }); return { content: [ { type: 'text', text: `Key light distance set to ${distance} units` } ] }; } );