visibility_isolate

Shows nodeIds normally and hides every other node in the scene, or with xray: true ghosts every other node ("isolate with context"); nodes added later are visible. Unknown ids are ignored and listed. Returns { hidden: count, xray: count, ignored }.

Command

Usage

TypeScript
surface.execute('visibility_isolate', { nodeIds, xray? })

Parameters

  • nodeIdsstring[]

    Required

  • xrayboolean

    Optional

Returns

object with hidden, xray, ignored, in the ok: true envelope.

JSON
{
  "type": "object",
  "properties": {
    "hidden": {
      "type": "integer",
      "minimum": 0
    },
    "xray": {
      "type": "integer",
      "minimum": 0
    },
    "ignored": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "hidden",
    "xray",
    "ignored"
  ]
}

See also