Apply UV to material ID
Okay guys last request for awhile!
We need to cycle and apply the following to all objects selected 1 by 1.
1: add a Poly select.
2: select a material ID.
3: Add a UVW map.
(if no polygons are selected on step 2,than skip steps 3 - 7)
4:Set Map channel to 2
5: set UVW map's length + width.
6: Set Alignment to X,Y, or Z
7:Move the UVW gizmo on X y or Z relative to the object's pivot point. (or relative to world x0 y0 z0 if its easier.)
8:do steps 1 - 7 again on the same object up to as many times as is needed for each side of the object specified above.
(my guess is that steps 1-7 would be copy pasted under the first set of steps 1-7.
The purpose of this script is to UV map lots of blocks so that each block will have the texture pixels match up when blocks of various sizes are aligned next to one another.