get_vertex_positions
Retrieve vertex positions from a mesh object in local or world coordinates. Optionally specify vertex indices or cap the number returned.
Instructions
Read vertex positions from a mesh object.
Parameters:
name: Mesh object name
indices: Comma-separated vertex indices to retrieve (returns all if omitted)
world_space: True = world coordinates (default), False = local/object coordinates
max_verts: Safety cap when retrieving all vertices (default 2000)
Returns JSON with each vertex's index and [x, y, z] position.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| indices | No | ||
| world_space | No | ||
| max_verts | No |