Skip to main content
Glama

create_light

Add lighting to 3ds Max scenes by creating various light types like Omni, Spot, and Skylight with customizable position, color, and intensity parameters.

Instructions

在 3ds Max 场景中创建一个灯光对象。

支持的灯光类型(light_type 参数):

  • Omni: 泛光灯(点光源),向四周均匀照射(默认)。

  • TargetSpot: 目标聚光灯,带目标点的锥形光源。

  • FreeSpot: 自由聚光灯,无目标点的锥形光源。

  • TargetDirect: 目标平行光,平行方向光照。

  • FreeLight: 自由灯光。

  • Skylight: 天光,模拟天空环境光照。

  • mr_Sky_Portal: Mental Ray 天空门户(需要 MR 插件)。 以及 V-Ray、Arnold 等插件的灯光类型(如 VRayLight、aiAreaLight)。

Args: light_type: 灯光类型名称。默认为 "Omni"。 name: 灯光名称。如果为空则使用默认命名。 position: 灯光位置,格式为 "x,y,z"。默认为 "0,0,100"。 color: 灯光颜色,格式为 "r,g,b" (0-255)。默认为 "255,255,255"(白色)。 intensity: 灯光强度/倍增器,默认 "1.0"。 params: 灯光额外参数的 JSON 字符串。 例如: '{"castShadows": true, "hotspot": 30, "falloff": 60}' 用于聚光灯。

Returns: dict: 操作结果。 - success (bool): 是否成功。 - name (str): 创建的灯光名称。 - light_type (str): 灯光类型。 - position (list): 位置 [x, y, z]。 - message (str): 操作描述信息。

示例调用 - 创建泛光灯: create_light(light_type="Omni", name="MainLight", position="0,0,200", color="255,245,230", intensity="1.5")

示例调用 - 创建聚光灯: create_light(light_type="FreeSpot", name="SpotLight01", position="100,0,150", params='{"hotspot": 30, "falloff": 60}')

示例调用 - 创建天光: create_light(light_type="Skylight", intensity="0.8")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
light_typeNoOmni
nameNo
positionNo0,0,100
colorNo255,255,255
intensityNo1.0
paramsNo
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden. It clearly indicates this is a creation/mutation operation ('创建' - create) and provides return value structure, but lacks important behavioral context like whether it requires specific scene states, what happens on failure, or if there are limitations on light counts. The examples help but don't fully cover behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections (purpose, supported types, args, returns, examples) and every sentence adds value. It could be slightly more concise by integrating the examples more tightly, but overall it's efficiently organized with no wasted text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter creation tool with no annotations and no output schema, the description provides excellent coverage of parameters and return values. It explains what the tool does, documents all parameters thoroughly, shows return structure, and provides multiple usage examples. The main gap is lack of behavioral context about scene requirements or limitations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by providing extensive parameter documentation. It explains each parameter's purpose, format, defaults, and provides specific examples for different light types. The light_type parameter gets particularly detailed treatment with descriptions of each supported type, going far beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('创建一个灯光对象' - create a light object) and resource ('在 3ds Max 场景中' - in a 3ds Max scene). It distinguishes itself from sibling tools like create_object or create_material by specifying it creates specifically light objects, not generic objects or materials.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., must have a scene open), compare to similar tools like create_object, or indicate when other lighting methods might be preferable. Usage is implied through examples but not explicitly stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/317431629/3dsMaxMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server