Three.js : How to return the script of a 3D Object?
<p>I'm playing with <em>three.js</em> and especially the Editor where you can attach Script on 3D object.
In Unity 3D you can access a script by using something like :</p>

<pre><code>targetGameObject.GetComponent (scriptName).targetVariable;
</code></pre>

<p>How can you do this with <em>three.js</em>?</p>