create_scene
Add an interactive 3D scene to a space: objects (boxes, spheres, cylinders, text, 3D models, lights, groups of them) in space, with their colors, materials, motion and notes. People turn it around, zoom in, click an object to read its notes, and comment on a point of it; editors move, turn and size objects in the page. Its objects are its own. Read guide topic "scenes" first; check it from several sides with render_scene.
Parameters
space_idstringrequiredtitlestringrequireddescriptionstringbackgroundstringgroundstringshadow, grid, none.lightingstringstudio, daylight, night, none.cameraobjectShow child attributes
positionany[]targetany[]fovnumberviewsobject[]Show child attributes
namestringrequiredpositionany[]requiredtargetany[]requiredobjectsobject[]Show child attributes
positionany[]rotationany[]scalenumber | any[]widthnumberheightnumberdepthnumberradiusnumberradius_topnumbertubenumberlengthnumbertextstringmodelstringlightstringpoint, spot, directional.intensitynumbertargetany[]colorstringmetalnessnumberroughnessnumberopacitynumberemissivestringemissive_intensitynumberimagestringwireframebooleanmotionstringspin, float, pulse.speednumberaxisstringx, y, z.labelbooleannotesstringhiddenbooleankeystringparentstringnamestringshapestringrequiredbox, sphere, cylinder, cone, torus, plane, capsule, text, model, light, group.read_scene
A 3D scene as it is now: its settings (background, ground, lighting, camera, saved views) and its objects in order, each with its id (what update_scene and comment take), parent group, shape, position, rotation, scale, size, look, motion and notes.
Parameters
item_idstringrequiredupdate_scene
Change a 3D scene: its settings (description, background, ground, lighting, camera); add objects; copy objects (an object with everything in it, to a new position: a second chair, a row of desks); change objects (any field — null clears one, parent null takes it out of its group); delete objects (and what a group holds; only when the person asked for it); add or delete saved views; its title. Changes apply in that order.
Parameters
item_idstringrequiredtitlestringdescriptionstring | nullbackgroundstringgroundstringshadow, grid, none.lightingstringstudio, daylight, night, none.cameraobjectShow child attributes
positionany[]targetany[]fovnumberadd_objectsobject[]Show child attributes
positionany[]rotationany[]scalenumber | any[]widthnumberheightnumberdepthnumberradiusnumberradius_topnumbertubenumberlengthnumbertextstringmodelstringlightstringpoint, spot, directional.intensitynumbertargetany[]colorstringmetalnessnumberroughnessnumberopacitynumberemissivestringemissive_intensitynumberimagestringwireframebooleanmotionstringspin, float, pulse.speednumberaxisstringx, y, z.labelbooleannotesstringhiddenbooleankeystringparentstringnamestringshapestringrequiredbox, sphere, cylinder, cone, torus, plane, capsule, text, model, light, group.copy_objectsobject[]Show child attributes
objectstringrequiredpositionany[]requirednamestringchange_objectsobject[]Show child attributes
positionany[] | nullrotationany[] | nullscalenumber | any[] | nullwidthnumber | nullheightnumber | nulldepthnumber | nullradiusnumber | nullradius_topnumber | nulltubenumber | nulllengthnumber | nulltextstring | nullmodelstring | nulllightstring | nullintensitynumber | nulltargetany[] | nullcolorstring | nullmetalnessnumber | nullroughnessnumber | nullopacitynumber | nullemissivestring | nullemissive_intensitynumber | nullimagestring | nullwireframeboolean | nullmotionstring | nullspeednumber | nullaxisstring | nulllabelboolean | nullnotesstring | nullhiddenboolean | nullobjectstringrequiredparentstring | nullnamestringshapestringbox, sphere, cylinder, cone, torus, plane, capsule, text, model, light, group.delete_objectsstring[]add_viewsobject[]Show child attributes
namestringrequiredpositionany[]requiredtargetany[]requireddelete_viewsstring[]add_model
Store a 3D model in a space, for a scene's model objects: a GLB (.glb), or a glTF (.gltf) with its buffers and pictures inside it, up to 50 MB, from a URL (a public address) or base64. Returns the url to give as model.
Parameters
space_idstringrequiredurlstringbase64stringnamestringrender_scene
See a 3D scene as people do: a screenshot from its camera, and from other sides when asked — front, back, left, right, top (each framing the whole scene) or a saved view by name or id — all drawn in one go. With them, checks of what the page sees: objects under the ground and models that did not load (from any side), objects out of view or too small to see (from its camera); and errors it hit. A scene looks right from one side and wrong from another: check it from at least two.
Parameters
item_idstringrequiredfromstring[]