---
title: ObjectStateManager
summary: The viewercommon object that holds the visible, hidden and selected Qid sets and the per-object colours, shared by every viewer attached to it. Its inputs are Qids or a BQL query.
part: glossary
see-also: [glossary/model-manager, glossary/qid, explanation/geometry-and-the-viewers]
---

# ObjectStateManager

Selection, visibility and colour are state, not rendering, so they live outside the viewers: every method (`setToSelectionSet`, `addToVisibleSet`, `setColor`, …) takes a set of [[term:qid|Qids]] or a [[term:bql]] query, which is resolved on the server, and the 3D and 2D viewers attached to the same manager react together. An application can run two managers over one [[term:model-manager]] when two viewers must show different states.
