CLF Color by Z
Add color to faces based on the Z location (height) of the face.
CLF Color by Z

This plugin will prompt you to enter two colors by inputing the RGB values. It will then paint all faces in the model according to their elevation (Z height). The first color will be applied to the highest elevations and the second color will be applied to the lowest elevations. It works by finding the coordinates of the center of the face. It will paint only what you have selected, or everything if you don't have anything selected. It will not paint groups or components or edges.

In the image, I entered green for my first color and blue for my second color. So the high peaks are green and the low points are blue and the script assigns the colors in between.

I've discovered that the script runs slow sometimes and its because it creates so many new materials. So sorry about that. I can't think of any way to get around that. 

10694 users
Size:
4.08 KB
Version:
CLF Color by Z (1.6.1); May 7, 2013
Number of Views: 
52863
OS Compatibility: 
Languages: 
Popularity: 
Extensions: 29
Chris Fullmer has been writing SketchUp plugins since 2009 when he designed a free study course at UC Berkeley aimed at using SketchUp Ruby to make tools to help improve the landscape modeling process. Chris now works for Trimble as the SketchUp Product Manager for the Extensibility Team.