Scene kit command

select.loop

Select Edge Loops

In a mesh's edit mode, selects the edge loop through the edge nearest the viewport pixel `position` (in face select mode the loop of faces across it), replacing the selection or added to it with `extend`; without `position`, adds the loops through every selected edge.

Kit
Scene 0.1.0 (.kscene)
Changes the document
no

Parameters

Parameters of select.loop
NameTypeRequiredDescription
extendbooleannoAdd to the selection instead of replacing it
positionnumber[]noA viewport pixel [x, y] near an edge of the edited mesh; left out, the loops through every selected edge [x, y]

Call through scene_run

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

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

Result of select.loop
NameTypeRequiredDescription
activeinteger | nullnothe active object, null when there is none
objectsinteger[]no
verticesintegernothe edited mesh's selected vertices
Result JSON Schema
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 loops through every selected edge [x, y]",
      "items": {
        "type": "number"
      },
      "type": "array"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (scene_commands through @kition/[email protected], built from KitionAI/kition-scene@4d06faf). As data: commands.jsonl.