add_modifier
Add modifiers like Bend, Twist, or TurboSmooth to objects in 3ds Max scenes to apply deformations, smoothing, or other transformations with customizable parameters.
Instructions
为 3ds Max 场景中的指定物体添加修改器(Modifier)。
该工具可以为场景中已存在的物体添加各种修改器,如 Bend、Twist、Taper、 TurboSmooth、Shell、UVW Map、Noise、Lattice、MeshSmooth 等。
支持的常见修改器类型(modifier_type 参数):
Bend: 弯曲修改器
Twist: 扭曲修改器
Taper: 锥化修改器
TurboSmooth: 涡轮平滑
MeshSmooth: 网格平滑
Shell: 壳修改器(给面片添加厚度)
Noise: 噪波修改器
Lattice: 晶格修改器
UVW_Map: UVW 贴图修改器(注意使用下划线代替空格)
Symmetry: 对称修改器
FFD_4x4x4: 自由变形修改器
Smooth: 平滑修改器
Relax: 松弛修改器
Push: 推力修改器
Stretch: 拉伸修改器
Squeeze: 挤压修改器
Ripple: 涟漪修改器
Wave: 波浪修改器
Skew: 倾斜修改器
Spherify: 球形化修改器
Edit_Poly: 编辑多边形修改器
Edit_Mesh: 编辑网格修改器 以及 3ds Max 中任何可用的修改器类名。
Args: object_name: 目标物体的名称(场景中已存在的对象)。 modifier_type: 修改器类型名称,如 "Bend"、"Twist"、"TurboSmooth" 等。 对于名称含空格的修改器,使用下划线代替空格,如 "UVW_Map"。 modifier_params: 修改器参数的 JSON 字符串,键为属性名,值为属性值。 例如: '{"angle": 90, "direction": 45}' 用于 Bend 修改器。 如果为空字符串则使用修改器默认参数。
Returns: dict: 操作结果。 - success (bool): 是否成功。 - object_name (str): 物体名称。 - modifier_type (str): 添加的修改器类型。 - modifier_name (str): 修改器实例名称。 - applied_params (dict): 成功应用的参数。 - message (str): 操作描述信息。
示例调用 - 为物体添加弯曲修改器: add_modifier(object_name="Box001", modifier_type="Bend", modifier_params='{"angle": 90}')
示例调用 - 为物体添加涡轮平滑: add_modifier(object_name="Box001", modifier_type="TurboSmooth", modifier_params='{"iterations": 2}')
示例调用 - 为物体添加壳修改器(添加厚度): add_modifier(object_name="Plane001", modifier_type="Shell", modifier_params='{"innerAmount": 0, "outerAmount": 5}')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_name | Yes | ||
| modifier_type | Yes | ||
| modifier_params | No |