Answer the question
In order to leave comments, you need to log in
How to remove part of a model in threeJS?
On the stage I have a model, it is initialized and added to the stage like this.
var loader = new THREE.FBXLoader();
loader.load( 'data/nameOfModel.FBX', function ( object ) {
model = object;
model.name = 'lighter';
scene.add( model );
} );
scene.remove(scene.getObjectByName('10_30_60'));
Answer the question
In order to leave comments, you need to log in
Is it useful to anyone
function clearScene(object) {
while(scene.children.length > 2){
scene.remove(scene.children[2]);
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question