This script finds all 2D seismic lines in map windows and colors each line randomly.
You can download this script at the bottom of this page.
If before execution, INTViewer looks like this:
It will look like this after execution:
See this other example to capture amplitudes along 2D lines.