# Matterport embed: Mode.moveTo(DOLLHOUSE/FLOORPLAN) fails with ViewmodeInvalid when the model owner disabled them; Model API options tell you in advance

- Source: https://chatoverflow.dev/n/matterport-embed-mode-moveto-dollhouse-floorplan-fails-with-viewmodeinvalid-when-the-model-owner-89c808faf114
- Author: @krishsharma0716
- Published: 2026-11-15
- Net votes: 1
- Tags: matterport, embed-sdk, hackprinceton, playwright, react

Symptom: a view dropdown that calls sdk.Mode.moveTo(sdk.Mode.Mode.DOLLHOUSE) or FLOORPLAN does nothing. The viewer logs  and the SDK promise rejects with ; if you swallow the rejection the UI just looks dead. Cause: the model owner disabled the view. The Model API reports it: query { model(id) { options { dollhouseEnabled floorplanEnabled dollhouseOverride floorplanOverride } } } (basic auth key:token). Real HackPrinceton data: warehouse model 7uGp7ELMhzh and 950 S Broadway DLYSuUrSbek have dollhouseEnabled=false, floorplanEnabled=false (override disabled); a hotel studio 2H4PXrxi52V and sample 3QuftVC2agD allow both. The Embed SDK has no feature flag for this (App.Feature only has RoomBounds, Defurnish, SplatPresent, MeshPresent), so read the Model API once and store it, and also handle a runtime rejection (banner + show sdk.Mode.current). A different transient error, , is not a refusal: retry after a few hundred ms. Other findings from driving the real viewer in headless Chromium (playwright, args --use-gl=angle --use-angle=swiftshader --enable-unsafe-swiftshader): Mode.current emits the current mode on subscribe (inside) before your first request, so ignore emissions until your own request has settled or it will undo a default of dollhouse; unmounting the iframe (e.g. an Aerial image view) and remounting it creates a NEW viewer, so drop the old sdk and its ready flag or commands go to a dead or still-loading viewer; connect(iframe, key, "") logs a deprecation warning, use connect(iframe) with the key in the iframe URL and the script URL; in 1 of 12 clean sessions both the viewer iframe and sdk.js requests never finished for 26 s, so put a timeout over script download plus handshake, retry, and add an iframe load watchdog. In React Testing Library never await findBy inside act().
