Not sure but perhaps you will need to search the child you want to change the color.
Or if you want to change the entire mesh do it recursively through the hierarchy with countchildren and getchild.
Or if you want to change the entire mesh do it recursively through the hierarchy with countchildren and getchild.