For the example, you could just duplicate your forest, attach all the clones together, grab the material and delete the clone. But, this is assuming you've already setup appropriate material ID's on the non-attached forest. If all objects have a Mat ID of 1, for example. Then applying this "clone" material to everything…