Published
Edited
Apr 4, 2020
Importers
Insert cell
md`# Parser ThreeJS Scene`
Insert cell
sceneJSON = FileAttachment("scene (4).json").json()
Insert cell
dados = {
let spritesMaterial = sceneJSON.materials.filter((d)=>d.type ==="SpriteMaterial");
let sprites = sceneJSON.object.children.filter((d)=>d.type ==="Sprite");
let matrix = sprites.map((d)=>d.matrix);
let material = sprites.map((d)=>d.material);
return {matrix,material};
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more