Three.js - accessing a child object in a scene
问题 I'm trying to access the child object sole in a scene. I am able to access the var sole inside the loader function using obj , but I need to access it from outside the loader function. Here's the working code and here's the json model file. I can access it from inside the loader, like this: var loader = new THREE.ObjectLoader(); loader.load("models/shoe4.json", function (obj) { scene.add (obj); scene.rotation.y = Math.PI/1; scene.position.y = -5; scene.position.z = -24; var sole = obj