Scene kit command

select.linked

Select Linked

In a mesh's edit mode, adds the connected part of the mesh under the viewport pixel `position` to the selection (takes it out with `deselect`); without `position`, every part the selection touches.

Kit
Scene 0.1.0 (.kscene)
Changes the document
no

Parameters

Parameters of select.linked
NameTypeRequiredDescription
deselectbooleannoTake the part under `position` out of the selection
positionnumber[]noA viewport pixel [x, y]: the connected part under it; left out, every part the selection touches [x, y]

Call through scene_run

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

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

Result

Result of select.linked
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": {
    "deselect": {
      "description": "Take the part under `position` out of the selection",
      "type": "boolean"
    },
    "position": {
      "description": "A viewport pixel [x, y]: the connected part under it; left out, every part the selection touches [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.