select_by_index
Select specific mesh vertices, edges, or faces by index to act on defect samples reported by analyze_mesh_quality. Add to or replace the current selection without relying on the viewport.
Instructions
Select specific vertices, edges or faces by index.
The deterministic way to select: no operator, no viewport, no guessing. analyze_mesh_quality reports sample indices for each defect it finds, so this is how to act on them.
Args: object_name: Name of the mesh object. element: One of: VERTEX, EDGE, FACE. indices: Indices to select. Must be non-negative and within the mesh. extend: Add to the current selection instead of replacing it.
Returns: Dict with how many elements were selected and the mesh's totals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extend | No | ||
| element | Yes | ||
| indices | Yes | ||
| object_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||