Python APIs for Cross-Plot Trend Node Contextual Actions
Getting Started
Getting Started
In order to define a contextual action for cross-plot layer trend nodes, you need to put your Python script in your Python directory under a directory called Contextual_Layer_Trend_Node.
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 trend node:
This script will create a copy of a trend with its defining polygon reversed, if it has one. If it does not have one, it will simply show a message dialog.
This script is attached to the bottom of this article.
The result after the script executes should look something like the following.