Originally created for a request on the ScriptSpot forums: http://www.scriptspot.com/forums/3ds-max/scripts-wanted/material-id-percentage-by-height-like-beiging-watercube-auditorium. The script will take every object selected and assign a wirecolor depending on the item's height relative to the total selection height.
Running the script will create a rollout with a few options:
COLOR 1: the first color
COLOR 2: the second color (DUH!)
VARIATION: this adds randomness to the pattern. Setting it to 0 will result in half the seats using COLOR 1 and the other half using COLOR 2, while using 100 will produce a totally random pattern.
OFFSET: offsets the result along the Z axis
LOW LIMIT: this can be used to force seats to use COLOR 2. So if you set it to 20%, every seat below 20% of the total height of the selection will use the COLOR 2 regardless of the VARIATION setting.
HIGH LIMIT: similar to LOW LIMIT, forces seats above this value to use COLOR 1
USE GRADIENT: Checking this box will have the script color the seats with a gradient instead of using just the two color.
To run just select a bunch of objects and hit START!. I didn't test it much, nor dos it have much error checking, so if you have any problems let me know. And feel fry to modify as needed. The fact that it only affects the wirecolor makes it somewhat useless, but it should be easy enough to modify if you need it to set the color on a particular material.