Skip to main content
Glama

create_object

Create basic geometric objects in 3ds Max scenes, including boxes, spheres, cylinders, and other primitives with customizable parameters and positioning.

Instructions

在 3ds Max 场景中创建一个基础几何体对象。

支持的几何体类型(object_type 参数):

  • Box: 长方体,参数: length, width, height, lengthsegs, widthsegs, heightsegs

  • Sphere: 球体,参数: radius, segments, smooth

  • Cylinder: 圆柱体,参数: radius, height, heightsegs, capsegs, sides, smooth

  • Plane: 平面,参数: length, width, lengthsegs, widthsegs

  • Torus: 圆环体,参数: radius1, radius2, segments, sides, smooth

  • Cone: 圆锥体,参数: radius1, radius2, height, heightsegs, capsegs, sides, smooth

  • Tube: 管状体,参数: radius1, radius2, height, heightsegs, capsegs, sides, smooth

  • Pyramid: 四棱锥,参数: width, depth, height

  • GeoSphere: 几何球体,参数: radius, segs

  • Teapot: 茶壶,参数: radius, segments, smooth

  • Hedra: 多面体,参数: radius, family, p, q

  • Torus_Knot: 圆环结,参数: radius, radius2, p, q, segments, sides 以及 3ds Max 中任何可用的基础创建类名。

Args: object_type: 几何体类型名称,如 "Box"、"Sphere"、"Cylinder" 等。 对于名称含空格的类型,使用下划线代替空格,如 "Torus_Knot"。 name: 对象名称。如果为空字符串则使用 3ds Max 的默认命名。 position: 对象的世界坐标位置,格式为 "x,y,z",如 "0,0,0" 或 "100,50,0"。 默认值为 "0,0,0"(世界原点)。 params: 对象创建参数的 JSON 字符串,键为属性名,值为属性值。 例如: '{"radius": 30, "segments": 32}' 用于创建球体。 例如: '{"length": 50, "width": 40, "height": 30}' 用于创建长方体。 如果为空字符串则使用默认参数。

Returns: dict: 操作结果。 - success (bool): 是否成功。 - name (str): 创建的对象名称。 - object_type (str): 对象类型。 - position (list): 对象的位置坐标 [x, y, z]。 - applied_params (dict): 成功应用的参数。 - message (str): 操作描述信息。

示例调用 - 创建一个默认球体: create_object(object_type="Sphere")

示例调用 - 在指定位置创建带参数的长方体: create_object(object_type="Box", name="MyBox", position="100,0,0", params='{"length": 50, "width": 40, "height": 30}')

示例调用 - 创建圆柱体: create_object(object_type="Cylinder", name="MyCylinder", position="0,50,0", params='{"radius": 20, "height": 60, "sides": 24}')

示例调用 - 创建平面: create_object(object_type="Plane", params='{"length": 200, "width": 200, "lengthsegs": 10, "widthsegs": 10}')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
object_typeYes
nameNo
positionNo0,0,0
paramsNo

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