Python APIs for Map 2D Seismic Line Layer Contextual Actions

Getting Started

In order to define a contextual action for map seismic 2D layers, you need to put your Python script in your Python directory under a directory called Contextual_Map_2D_Seismic_Line_Layer.

Go to Tools->Options->Environment->Python Scripts (or Tools->Options->Python->Scripts in INTViewer 5.2) and click "Refresh from Disk". Your script should be listed automatically.

You will now be able to execute this script from the contextual menu of the map 2D seismic line layer:

This script will create a polyline representing the arbitrary path defined by the 2D line, and display a volume along that 2D line.

For performance reasons, only 100 traces of the 2D line are used.

This script is attached to the bottom of this article.

The result after the script executes should look something like the following.