selection_clear
Deselects every node and element. Returns { nodeIds: [] }.
Usage
surface.execute('selection_clear')Returns
object with nodeIds, elements, in the ok: true envelope.
{
"type": "object",
"properties": {
"nodeIds": {
"type": "array",
"items": {
"type": "string"
}
},
"elements": {
"type": "array",
"items": {
"type": "object",
"properties": {
"nodeId": {
"type": "string"
},
"elements": {
"type": "object",
"properties": {
"domain": {
"type": "string",
"enum": [
"point",
"edge",
"face",
"curve",
"topology-edge"
]
},
"ids": {
"type": "array",
"items": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
},
"from": {
"type": "array",
"items": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
},
"handleId": {
"type": "string"
}
},
"required": [
"domain",
"ids",
"handleId"
]
}
},
"required": [
"nodeId",
"elements"
]
}
}
},
"required": [
"nodeIds"
]
}