for(var i in self.skinnedMesh.children){
if(self.skinnedMesh.children[i].name == parameters.name){
self.skinnedMesh.children[i].add(parameters.object);
}
if(typeof self.skinnedMesh.children[i].children != "undefined"{
for(var i2 in self.skinnedMesh.children[i].children){
и тд...
}
}
}