selection_level_set

Sets the selection level of viewport (default the primary slot), what a click selects: 'object', 'face', 'edge' or 'point'. Neither selection changes. Returns { level }.

Command

Usage

TypeScript
surface.execute('selection_level_set', { viewport?, level })

Parameters

  • viewportstring

    the viewport slot (default the primary one)

    Optional

  • level"object" | "face" | "edge" | "point"

    Required

Returns

object with level, in the ok: true envelope.

JSON
{
  "type": "object",
  "properties": {
    "level": {
      "type": "string",
      "enum": [
        "object",
        "face",
        "edge",
        "point"
      ]
    }
  },
  "required": [
    "level"
  ]
}

See also