title: Three.js: loading a JSON camera and light
body: <p>I am working with Blender, using io_three to export and entire scene, that consists of a Torus, a Sphere, Suzanne (the Money Head), a Camera and a Point of Light (Lamp). The JSON file I get contains those elements as children: </p>
  
  <pre><code>"object":{
      "type":"Scene",
      "matrix":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],
      "uuid":"3FF28BA1-D2C4-4191-B85E-6CF740855E1C",
      "children":[{
          "name":"Camera",
          "uuid":"B7190F03-3E64-4CE9-80C4-4C4830CDE149",
          "matrix":[-0.685881,-0.0108168,0.727634,0,0.31737,0.895343,0.312469,0,-0.654862,0.445245,-0.610666,0,-8.96977,10.5794,-7.42916,1],
          "visible":true,
          "type":"PerspectiveCamera",
          "far":100,
          "near":0.1,
          "aspect":1.77778,
          "fov":28.8415
      },{
          "name":"Sphere",
          "uuid":"0BD547AA-5356-467A-B9B9-F14F1E6B14F3",
          "matrix":[-1,0,0,0,0,0,1,0,0,1,0,0,2.73509,4.09248,-1.14813,1],
          "visible":true,
          "type":"Mesh",
          "material":"F6D51381-509B-460A-9468-D7FB4011BAEF",
          "castShadow":true,
          "receiveShadow":true,
          "geometry":"7953F05E-3773-435D-9C37-1F2F004F2328"
      },{
          "name":"Suzanne",
          "uuid":"B195305E-3E34-484F-BC36-9F7E2F25C8C3",
          "matrix":[-1,0,0,0,0,0,1,0,0,1,0,0,-0.0103972,6.33829,0.0395848,1],
          "visible":true,
          "type":"Mesh",
          "material":"9B00D2EB-ABD8-44CB-9CB9-C9CD431BE867",
          "castShadow":true,
          "receiveShadow":true,
          "geometry":"2264D3C6-FBE8-4ED2-927A-DC8B9261DCEE"
      },{
          "name":"Lamp",
          "uuid":"68A14BA0-1A6D-41B2-9DE3-D96F954A6939",
          "matrix":[0.290865,-0.0551891,0.955171,0,0.771101,0.604525,-0.199883,0,-0.566393,0.794672,0.218391,0,-4.07625,5.90386,1.00545,1],
          "visible":true,
          "type":"PointLight",
          "color":16777215,
          "intensity":1,
          "distance":0,
          "decayExponent":2
      },{
          "name":"Torus",
          "uuid":"B4469FFE-114C-4FA8-91F3-A14E4186C74A",
          "matrix":[-1,0,0,0,0,0,1,0,0,1,0,0,0.0785838,1.71657,3.25101,1],
          "visible":true,
          "type":"Mesh",
          "material":"4C8B09D5-5C78-431A-815E-B5D94C4B9CFF",
          "castShadow":true,
          "receiveShadow":true,
          "geometry":"9BC4AAA5-E636-42F8-80AF-AD2AC955A727"
      }]
  }
  </code></pre>
  
  <p>I am now importing the scene using the Object Loader, to get everything at once, instead of individual objects:</p>
  
  <pre><code>var Sphere;
  var Monkey;
  var BlenderCam;
  
  var loader = new THREE.ObjectLoader();
  // load a resource
  loader.load(
      // resource URL
      'models/suzane/scene.json',
      // Function when resource is loaded
      function ( loadedScene ) {
          scene.add( loadedScene );
  
          //Getting the objects. This works fine and I can handle them:
          Sphere = loadedScene.getObjectByName( "Sphere", true );
          Monkey = loadedScene.getObjectByName( "Suzanne", true );
  
          //Trying to get the camera object. The camera doesn's seem to be found
          BlenderCam = loadedScene.children[ 0 ];
  
          loop();
      }
  );
  </code></pre>
  
  <p>I can successfully handle any mesh: The Torus, Suzanne and Sphere. However, I can't find a way to handle the Camera or the Lamp.</p>
  
  <p>I have even tried looking for each of the children using this property:</p>
  
  <pre><code>BlenderCam = loadedScene.children[ 0 ];
  </code></pre>
  
  <p>I tried numbers from 0 to 4 (there are 5 children), but Three.js only recognizes three of them. It is ignoring the Camera and the Lamp. I even changed the position of the Lamp object in the JSON file to see if it would make a difference, but it still only got children[0], children[1] and children[2], where children[0] is not the Camera, but the Sphere. So, the Camera is being "ignored".</p>
  
  <p><strong>So, the questions are:</strong></p>
  
  <ol>
  <li>Is there are way to use the Camera that is set on the JSON file?</li>
  <li>Is there a way to use the Lamp on the JSON file?</li>
  </ol>
  
  <p>Basically, I want to work out everything on Blender, and then just import the entire scene to Three.js - objects, camera and light.
  Any help you can give me will be greatly appreciated. Thanks in advance for your time!</p>