Python APIs for 3D Seismic Line Layer Contextual Actions

Getting Started

In order to define a contextual action for 2D seismic line, you need to put your Python script in your Python directory under a directory called Contextual_3D_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 2D seismic line layer:

This script will alternate the normalization type and db normalization. A dialog box will pop up showing the new normalization type.

This script is attached to the bottom of this article.

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