title: babylon.js how to get access to a mesh outside of it's function
body: <p>I just cant get access to the babylon mesh.
  Everytime I try to run the code I get this 
  <a href="https://i.stack.imgur.com/Zlt4u.png" rel="nofollow noreferrer">error</a>.</p>
  
  <p>I've tried it with two different approaches:</p>
  
  <p><strong>Example 1:</strong></p>
  
  <pre><code>var carTest;
  BABYLON.SceneLoader.ImportMesh("", "assets/", "car.obj", scene, function(object) {
          carTest = object[0];
      });
  carTest.position.x = 10;
  </code></pre>
  
  <p><strong>Example 2:</strong></p>
  
  <pre><code>var carTest = BABYLON.SceneLoader.ImportMesh("", "assets/", "car.obj", scene);
  carTest.position.x = 10;
  </code></pre>