How to fetch child mesh of a .obj? [Solved]

Here I fetch one Child object Torus, now How to apply manual color to that child object See Code

			 var loader = new THREE.OBJMTLLoader();
			loader.load( 'meshes/objNmtl/sign3.obj', 'meshes/objNmtl/sign3.mtl', function ( object ) {
				object.traverse( function ( child ) {
					if ( child instanceof THREE.Object3D  ) {
						
					if(child.name=='Torus'){
						alert("torus");//
						
						///here i need to add color
					}
						
					}
				} );
				scene.add( object );

			} );
1 Like