In order to define a contextual action for log curve nodes, you need to put your Python script in your Python directory under a directory called Contextual_Log_Curve_Node (or Contextual_Well_Log_Curve_Node).
To do the same for deviation curve nodes, put the script in a directory called Contextual_Well_Deviation_Curve_Node. This page will create an action for log curve nodes.
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 log curve node:
This script, if the log curve node is in a well log window as shown above, will delete all tracks that display the log curve. If it is in a well layer, it will simply remove the curve from the track (not
shown in this article). For 3D layers, we will show a pop-up message indicating an unsupported window, and do nothing (not shown in this article).
This script is attached to the bottom of this article. NOTE: To make this script compatible with deviation curves, replace logCurve.getName() with deviationCurve.getName().
The result after the script executes should look something like the following.