snap_to_grid
Align a named object to the nearest grid point using an optional grid size, and get its snapped coordinates for precise 3D placement.
Instructions
Snap an object's location to the nearest grid point.
Args: object_name: Name of the object. grid_size: Size of the grid cells. Defaults to 1.0.
Returns: Dict with the object name and snapped location.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid_size | No | ||
| object_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||