Plannar Mapping Textures

I have built about a hundred buildings with pitched roofs. I want to map a texture of spanish barrel tile to each. Is there a way to do so easily without having to select each face with the same angle and using plannar mapping? Basically, I don't want to have to type in all the numeric values so each roof top face is the same scale with proper rotation (the rotation changes depending on the angle the building sits in relation to other buildings). Is this a shading network thing or a mel scripting thing? Any clarification on how this is dealt with is appreciated.

Mike

Select all faces in question, open uv editor and snap all the uv's to corners ( or wherever you texture demands it ). You can also script it. Ir depends on the complexsity of the situation.

OK, I select all faces, open the UV editor, but not sure what you mean by snap all UV's to corners. Is this a button, a menu item, or am I physically selecting all UV's?

read the chapter on uv mapping in maya manual