This script reads the trajectory of a well and derives a log curve from it. The log curve indicates, for each point of the trajectory, the amplitude of the closest seismic sample found. At the end of the script execution, a well log window appears with a new curve "Amplitudes".
In a nutshell, this script executes the following steps:
Your desktop should look like this after this script finishes:
For simplicity, the INLINE-XLINE increment is assumed to be 1. This script also doesn't test for edge cases, such as when there is no matching trace.
The seismic must have a corner point geometry. The well and the seismic must be in depth and use the same coordinate system for X,Y coordinates.
This is a very short script (only 52 lines). A better script might want to capture more sample values, or test for various failure cases.
You can download this script at the bottom of the page.