create_box
Create a box primitive in 3ds Max with configurable length, width, height, and segment counts. Set segment counts to 12-16 for game assets and run reset_transform before baking normals to avoid non-uniform scale issues.
Instructions
创建一个长方体。长度/宽度/高度可分别设分段;游戏资产分段保持 12-16,烘焙法线前用 reset_transform 清掉非均匀缩放。 [English] Create a box. Set length/width/height and their segment counts; keep 12-16 segments for game assets and call reset_transform before baking normals to clear non-uniform scale.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | 结束角(度,Arc)。 | End angle in degrees (Arc). | |
| axis | No | 壶轴类型 1-4(Teapot);忽略通常即可。 | Teapot axis 1-4; usually leave default. | |
| from | No | 起始角(度,Arc)。 | Start angle in degrees (Arc). | |
| name | No | 对象名称;省略则自动命名。 | Object name; auto-generated if omitted. | |
| sides | No | 边数/管径向分段(Cylinder/Cone/NGon/Torus)。 | Side / tube radial segments (Cylinder/Cone/NGon/Torus). | |
| turns | No | 圈数(Helix)。 | Number of turns (Helix). | |
| width | No | 宽度。 | Width. | |
| fillet | No | 圆角量(Capsule)。 | Fillet amount (Capsule). | |
| height | No | 高度。 | Height. | |
| length | No | 长度(Box/Plane/Rectangle/Cone 等)。分段数决定多边形数量,游戏资产保持 12-16。 | Length (Box/Plane/Rectangle/Cone etc). Segments drive poly count - keep 12-16 for game assets. | |
| radius | No | 半径(Sphere/Torus/Cylinder 等)。 | Radius (Sphere/Torus/Cylinder etc). | |
| smooth | No | 是否平滑(Teapot 等)。 | Smooth the surface (Teapot etc). | |
| capSegs | No | 封顶分段(Cylinder/Cone/Tube)。 | Cap segments (Cylinder/Cone/Tube). | |
| chamfer | No | 倒角量(ChamferBox)。 | Chamfer amount (ChamferBox). | |
| radius1 | No | 第一半径(Donut/Tube/Helix/Cone 顶)。 | First radius (Donut/Tube/Helix/Cone top). | |
| radius2 | No | 第二半径(Donut/Tube/Helix/Cone 底)。 | Second radius (Donut/Tube/Helix/Cone bottom). | |
| setName | No | 创建后再改名为此名(name 的兜底写法)。 | Rename after creation (fallback for name). | |
| position | No | 世界坐标位置 [x,y,z]。 | World position [x,y,z]. | |
| segments | No | 分段数;影响多边形数量,游戏资产保持低值。 | Segment count; drives polygon count, keep low for game assets. | |
| widthSegs | No | 宽度方向分段(Box/Plane)。 | Width segments (Box/Plane). | |
| heightSegs | No | 高度方向分段(Box/Cylinder/Cone)。 | Height segments (Box/Cylinder/Cone). | |
| lengthSegs | No | 长度方向分段(Box/Plane)。 | Length segments (Box/Plane). | |
| cornerRadius | No | 圆角半径(Rectangle)。 | Corner radius (Rectangle). |