title: Get object position in a three.js scene dynamically
body: <p>I am new to <a href="https://threejs.org" rel="nofollow noreferrer">threejs</a>.</p>
  
  <p>I have scene with an object in it which we can move around the scene on all the XYZ Axis using <a href="https://github.com/mrdoob/three.js/blob/master/examples/js/controls/TransformControls.js" rel="nofollow noreferrer">TransformControls.js</a>. </p>
  
  <p>When I translate/move the object inside the scene using mouse click and drag on any of the axis (i.e X,Y,Z). I want to get the updated X,Y,Z position co-ordinates of that particular object inside the scene. </p>
  
  <p>I use <code>mesh.position.set( 0, 0, 0 );</code> to set position of the object prior rendering the scene, But I am not able to find how to get the dynamic position of an object inside a scene.</p>
  
  <p>Eventually I want to save the updated position co-ordinates after the transform operation and re-render the scene with the object at the updated position co-ordinates when the user comes back to the page or does a page refresh.</p>
  
  <p>Any pointers would be very helpful.</p>
  
  <p>Thank you</p>