Getting node through javascript


how can i get Ball mesh through javascript in this

Node.root.getChild(“Ball”); is not working for me

The getChild() method only searches the node’s immediate children, not descendants. In this case, you would need to specify the full hierarchy like this:

var ballNode = Node.root.getChild("Wayfarer.fbx").getChild("Wayfarer").getChild("RayBanLow").getChild("Ball");