Python APIs for Map Horizon Layer Contextual Actions

Getting Started

In order to define a contextual action for map horizon layers, you need to put your Python script in your Python directory under a directory called Contextual_Map_Horizon_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 horizon layer:

This script will remove a 500 inline unit by 500 cross line unit square from the horizon data centered on the mouse position when the contextual menu was opened.

This script is attached to the bottom of this article.

The result after the script executes should look similar to the following.