light_create
Create 3ds Max lights with specified type, position, color, intensity, shadows, decay, and cone settings. Supports standard, target, and renderer-specific area lights.
Instructions
通用灯光创建:支持 omni / free_spot / spot(目标聚光) / directional(目标平行) / mr_area_omni / mr_area_spot,以及 FStorm/VRay/Corona 面积光(需对应渲染器安装)。目标型灯光会在给定位置创建并自动偏移目标点。共享参数:名称、位置、颜色、强度/倍增、投影、衰减、聚光锥角与半影。 [English] Generic light creation: omni / free_spot / spot (target) / directional (target) / mr_area_omni / mr_area_spot, plus FStorm/VRay/Corona area lights (require the renderer installed). Target-type lights are created at the given position with an offset target. Shared params: name, position, colour, intensity/multiplier, shadows, decay, cone angle and penumbra.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | 灯光名称。 | Light name. | |
| type | Yes | 灯光类型。 | Light type. | |
| color | No | 颜色 [0-255],也可传 "#RRGGBB"。 | Colour [0-255], or a "#RRGGBB" string. | |
| decay | No | 衰减类型。 | Decay type. | |
| azimuth | No | 仅 sun 类型:方位角(度)。 | Sun only: azimuth (degrees). | |
| altitude | No | 仅 sun 类型:高度角(度)。 | Sun only: altitude (degrees). | |
| penumbra | No | 聚光半影(度)。 | Spot penumbra (degrees). | |
| position | No | 位置 [x,y,z]。 | Position [x,y,z]. | |
| coneAngle | No | 聚光锥角(度)。 | Spot cone angle (degrees). | |
| intensity | No | 强度(等价于 multiplier,二选一)。 | Intensity (alias of multiplier). | |
| multiplier | No | 倍增/强度。 | Multiplier/intensity. | |
| castShadows | No | 是否投影,默认否。 | Cast shadows, default false. |