Just replace “getChildMeshes” with “getChildren” and it should work. getChildren returns only direct child nodes of object, while getChildMeshes return all child nodes, no matter how nested they are.
4 Likes