{"action":"closed","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/7530","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/7530/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/7530/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/7530/events","html_url":"https://github.com/mrdoob/three.js/issues/7530","id":114834723,"number":7530,"title":"Objects Added count","user":{"login":"johnsonsudre","id":3264149,"avatar_url":"https://avatars.githubusercontent.com/u/3264149?v=3","gravatar_id":"","url":"https://api.github.com/users/johnsonsudre","html_url":"https://github.com/johnsonsudre","followers_url":"https://api.github.com/users/johnsonsudre/followers","following_url":"https://api.github.com/users/johnsonsudre/following{/other_user}","gists_url":"https://api.github.com/users/johnsonsudre/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsonsudre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsonsudre/subscriptions","organizations_url":"https://api.github.com/users/johnsonsudre/orgs","repos_url":"https://api.github.com/users/johnsonsudre/repos","events_url":"https://api.github.com/users/johnsonsudre/events{/privacy}","received_events_url":"https://api.github.com/users/johnsonsudre/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mrdoob/three.js/labels/Help%20(please%20use%20Stackoverflow)","name":"Help (please use Stackoverflow)","color":"cfcfcf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-03T14:57:54Z","updated_at":"2015-11-03T15:09:08Z","closed_at":"2015-11-03T15:09:08Z","body":"Hi, in first congratulations for yours jobs!!  Thank You!\r\n\r\nHow to I acess element by elements exported from a full scene .blend file!\r\n\r\nIn this test, I exported a Blender scene with four cubes. Now, with three.js, I want storage this cubes (objects) in javascript Array. I tryed this:\r\n\r\n```javascript\r\n<html lang=\"pt-BR\">\r\n<head>\r\n    <meta charset=\"UTF-8\" />\r\n</head>\r\n<script src=\"./js/three.min.js\"></script>\r\n<script src=\"./js/OrbitControls.js\"></script>\r\n<script type=\"text/javascript\" src=\"./js/dat.gui.min.js\"></script>\r\n<script src=\"./js/OBJLoader.js\"></script>\r\n\r\n<div id=\"render\">\r\n</div>\r\n\r\n<script>\r\n// VARIÁVEIS\r\n\r\nvar qtd = 0;\r\nvar tam = 0;\r\nvar Modelo;\r\nvar Elementos = [];\r\n\r\n// OBJETOS\r\nvar Render = new THREE.WebGLRenderer();\r\nvar Cenario = new THREE.Scene();\r\nvar Cam = new THREE.PerspectiveCamera();\r\nvar LuzDir;\r\nvar controles;\r\n\r\n// modelo 3d com .ObjectLoader()\r\nvar Modelo3d_Object = new THREE.ObjectLoader();\r\nModelo3d_Object.load('modelo3d_teste.json', funcaoCarregaJSON);\r\n\r\n// INI FUNCOES\r\ninicio();\r\nanimacao();\r\nconsole.log(Cenario);\r\nconsole.log(Cenario.__webglObjects);\r\nElementos = Cenario.__webglObjects;\r\nconsole.log(Elementos.length); \r\n\r\n// FUNÇÕES\r\nfunction inicio(){\r\n    Render.setSize(600,600);\r\n    document.getElementById('render').appendChild(Render.domElement);\r\n    Cam.position.z = 100;\r\n    Cenario.add(Cam);\r\n    Cenario.add(new THREE.GridHelper(100,10));\r\n    LuzDir = new THREE.DirectionalLight(0xffffff, 1);\r\n    LuzDir.position.set(100, 100, 50);\r\n    Cenario.add(LuzDir);\r\n    controles = new THREE.OrbitControls(Cam, Render.domElement);    \r\n}\r\n\r\n// Carrega arquivo JSON\r\nfunction funcaoCarregaJSON(geometry){\r\n    geometry.position.x = 0;\r\n    geometry.position.y = 0;\r\n    geometry.position.z = 0;\r\n    Cenario.add(geometry);\r\n}\r\n\r\nfunction animacao() {\r\n    requestAnimationFrame(animacao);\r\n    render_modelo();\r\n}\r\n\r\nfunction render_modelo(){\r\n    // Renderizar\r\n    Render.render(Cenario, Cam);\r\n}    \r\n</script>\r\n<html>\r\n```\r\n\r\nBut in this case I can see only one element.\r\n\r\n![__webglobjects](https://cloud.githubusercontent.com/assets/3264149/10911053/09443d0a-822a-11e5-81ba-1f14f3e5cc2e.jpg)\r\n\r\nWhere I went wrong??"}}