---
title: "select.ring: Select Edge Rings — Scene kit command — Kition"
description: "In a mesh's edit mode, selects the ring of edges across the quads on both sides of the edge nearest the viewport pixel `position`, replacing the selection or added to it with `extend`; without `position`, adds the rings across every selected edge."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/select.ring"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/scene/commands/select.ring](https://developer.kition.ai/docs/kits/scene/commands/select.ring)

# select.ring

**Select Edge Rings.** In a mesh's edit mode, selects the ring of edges across the quads on both sides of the edge nearest the viewport pixel `position`, replacing the selection or added to it with `extend`; without `position`, adds the rings across every selected edge.

- Kit: Scene 0.1.0 (.kscene); reference: [Scene kit commands](https://developer.kition.ai/docs/kits/scene.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `extend` | `boolean` | no | Add to the selection instead of replacing it |
| `position` | `number[]` | no | A viewport pixel [x, y] near an edge of the edited mesh; left out, the rings across every selected edge [x, y] |

## Call through scene_run

```text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "select.ring" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `extend`, `position`. scene_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `active` | `integer \| null` | no | the active object, null when there is none |
| `objects` | `integer[]` | no |  |
| `vertices` | `integer` | no | the edited mesh's selected vertices |

```json
{
  "additionalProperties": true,
  "properties": {
    "active": {
      "description": "the active object, null when there is none",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "objects": {
      "items": {
        "type": "integer"
      },
      "type": "array"
    },
    "vertices": {
      "description": "the edited mesh's selected vertices",
      "type": "integer"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "extend": {
      "description": "Add to the selection instead of replacing it",
      "type": "boolean"
    },
    "position": {
      "description": "A viewport pixel [x, y] near an edge of the edited mesh; left out, the rings across every selected edge [x, y]",
      "items": {
        "type": "number"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/scene-darwin-arm64@0.1.0 and the kit itself (scene_commands through @kition/cli@0.1.1, built from KitionAI/kition-scene@4d06faf).
