← ClaudeAtlas

aps-viewer-v8-migrationlisted

Migrate Autodesk Platform Services (APS) Viewer apps from v7 to v8. Use when the user wants to upgrade, port, or audit Viewer code for v8 (or the v8 preview), or when Viewer code breaks after switching to viewer3D-v8.min.js or /viewers/8.*. Covers three.js removal, viewer.overlays and SceneBuilder replacement with the Scene API and render layers, custom materials, fragment and viewer.impl internals, camera and raycasting, Autodesk.DataVisualization and other retired extensions, ES6-class extensions, removed preferences and Private APIs, Large Model Experience streaming, WebGPU, secure-context hosting, and the mandatory Initializer promise.
autodesk-platform-services/skills · ★ 7 · API & Backend · score 78
Install: claude install-skill autodesk-platform-services/skills
# APS Viewer v7 → v8 migration Port an existing APS Viewer v7 app to v8. v8 removes three.js from the public API, replaces overlays and SceneBuilder with the Scene API, renders with WebGPU, always streams models (Large Model Experience), requires a secure context and ES6-class extensions, and removes APIs that were deprecated in v7. Conventions in this skill and its references: `av = Autodesk.Viewing`, `avs = Autodesk.Viewing.Scene`, `avm = Autodesk.Viewing.Math`. ## Ground rules - **Default: port against v7 first, then switch the script URL.** Most v8 code in this skill also runs on v7 with the Scene API enabled. Making the app work on v7 + Scene API first keeps a working baseline and separates renderer/loading issues from API issues. v7 + Scene API is a stand-in, not the v8 runtime: math types, loading, and renderer behavior differ, so verify on v8 too. Several replacements (`getRenderLayers()`, `getPreferences()`, the Initializer promise, the `Camera` class) first shipped in v7.131.0, so apps pinned to an older version (for example `/viewers/7.89/`, `6.*`, or the `viewingservice/v1/...?v=` form) must move to `7.*` (or 7.131 or later) first; see the legacy baseline table in `P01-script-urls-and-baselines.md`. - **Alternative: go straight to v8.** Offer this in the plan when the user doesn't need the app to keep running on v7, or when v7 + Scene API behaves differently from v8 for the code being ported. Switch the URLs first (step 6), then port and veri