set_vertex_group
Create or modify a vertex group on a mesh object by adding, replacing, or removing vertices with specified weights for targeted mesh control.
Instructions
Create or modify a vertex group on a mesh object.
Parameters:
object_name: Name of the mesh object
group_name: Vertex group name (created if doesn't exist)
vertex_indices: List of vertex indices to add/modify
weight: Weight value 0-1 (default: 1.0)
action: REPLACE, ADD, SUBTRACT, or REMOVE (default: REPLACE)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"object_name": "<object_name>",
"group_name": "<group_name>",
"vertex_indices": "<vertex_indices>"
},
"name": "set_vertex_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | REPLACE | |
| weight | No | ||
| group_name | Yes | ||
| object_name | Yes | ||
| vertex_indices | Yes |