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 }.
Usage
surface.execute('selection_level_set', { viewport?, level })Parameters
viewportstringthe viewport slot (default the primary one)
level"object" | "face" | "edge" | "point"
Returns
object with level, in the ok: true envelope.
{
"type": "object",
"properties": {
"level": {
"type": "string",
"enum": [
"object",
"face",
"edge",
"point"
]
}
},
"required": [
"level"
]
}