You can write Python scripts that will run automatically when specific events occur in INTViewer. These scripts are dubbed "reactive scripts".
In order to designate a script as a reactive script, you will need to put your script into a specially-named folder in your INTViewer Python directory. The naming pattern for the folder is dependent upon the event type. The different event types are listed below:
- Property Provider Event (more info) (example)
- Cursor Position Event (example)
- Trend Calculator Event
- Xp Data Range Change Event
- Data Synchronized Event (example)
- CRS Provider Event
- Clear All Event (example)
- Data Change Event (example)
- Data Load Event (example)
- Point Data Event (example)
- Viewer Window Event (example) - for when a layer is added or removed
- Window Event (example) - for when a window is added or removed
- Window Position Event (example)
- Window Scale Event (example)
- Combined Window Event (example)
- Seismic Processor Event
- Shape Created Event (example)
- Shape Deleted Event
- Trace Axis Event (example)
- Seismic Volume Object 3D Polyline Event (example)
- Seismic Volume Object 3D Probe Event (example)
- Seismic Volume Object 3D Slice Event
- Rectangular Event (example)