Function: acquireScene()
ts
function acquireScene(ctx, id, layout?): Scene3D | undefined;Experimental
The live scene id for this pass: its viewport (created on first use), updated with layout (a trace passes its calc.scene; else the pass's laid-out scene, or the previous layout, or one laid out without data). undefined when the scene isn't in the layout or the context has no subplotViewport (hand-built contexts).
Parameters
| Parameter | Type |
|---|---|
ctx | SceneContext |
id | string |
layout? | SceneLayout |
Returns
Scene3D | undefined