Property Change Event occurs whenever the properties of a window, layer or other property provider object has changed.
You can have your python script react to all property change events or react to property change events for a particular class.
To have your script react to all property change events, you need to put your python script in your Python directory under a folder called On_Properties_Changed.
To have your script react to a property change event from a particular class, you need to put your script in your Python directory under one of the folders listed below:
- Seismic Layer: On_XSection_Seismic_Layer_Properties_Changed
- Time Slice Layer: On_Map_Time_Slice_Layer_Properties_Changed
- Outline Layer: On_Map_Outline_Layer_Properties_Changed
- 2D Seismic Line Layer: On_Map_2D_Seismic_Line_Layer_Properties_Changed
- Cross-Plot Layer: On_Cross_Plot_Cross_Plot_Layer_Properties_Changed
- Calculator Layer: On_XSection_Calculator_Layer_Properties_Changed
- Map Calculator Layer: On_Map_Calculator_Layer_Properties_Changed
- Horizon Layer: On_XSection_Horizon_Layer_Properties_Changed
- Map Horizon Layer: On_Map_Horizon_Layer_Properties_Changed
- PointSet Layer: On_XSection_PointSet_Layer_Properties_Changed
- Map PointSet Layer: On_Map_PointSet_Layer_Properties_Changed
- Well Layer: On_XSection_Well_Layer_Properties_Changed
- Map Well Layer: On_Map_Well_Layer_Properties_Changed
- Well Log Track: On_Well_Log_Track_Properties_Changed
- FK Layer: On_F_K_Display_FK_Layer_Properties_Changed
- FT Layer: On_F_T_Analysis_FT_Layer_Properties_Changed
- Spectrum Layer: On_Spectrum_Analysis_Spectrum_Layer_Properties_Changed
- Spectrum Plot Layer: On_Spectrum_Plot_Spectrum_Plot_Layer_Properties_Changed
- Seismic Histogram Layer: On_Histogram_Seismic_Layer_Properties_Changed
- Well Histogram Layer: On_Histogram_Well_Layer_Properties_Changed
- Horizon Histogram Layer: On_Histogram_Horizon_Layer_Properties_Changed
- PointSet Histogram Layer: On_Histogram_PointSet_Layer_Properties_Changed
- Fault Layer: On_XSection_Fault_Layer_Properties_Changed
- Map Fault Layer: On_Map_Fault_Layer_Properties_Changed
- GIS Layer: On_Map_Gis_Layer_Properties_Changed
- Seismic Volume Layer: On_3D_Seismic_Volume_Layer_Properties_Changed
- 3D Seismic Pre-Stack Layer: On_3D_Seismic_PreStack_Layer_Properties_Changed
- 3D Seismic Line Layer: On_3D_2D_Seismic_Line_Layer_Properties_Changed
- 3D Horizon Layer: On_3D_Horizon_Layer_Properties_Changed
- 3D PointSet Layer: On_3D_PointSet_Layer_Properties_Changed
- 3D Well Layer: On_3D_Well_Layer_Properties_Changed
- 3D Fault Layer: On_3D_Fault_Layer_Properties_Changed
- XSection Window: On_XSection_Window_Properties_Changed
- Map Window: On_Map_Window_Properties_Changed
- 3D Window: On_3D_Window_Properties_Changed
- Combined Window: On_Combined_Window_Properties_Changed
- FK Window: On_F_K_Display_Window_Properties_Changed
- FT Window: On_F_T_Analysis_Window_Properties_Changed
- Seismic Histogram Window: On_Histogram_Seismic_Window_Properties_Changed
- Well Histogram Window: On_Histogram_Well_Window_Properties_Changed
- Horizon Histogram Window: On_Histogram_Horizon_Window_Properties_Changed
- PointSet Histogram Window: On_Histogram_PointSet_Window_Properties_Changed
- Spectrum Analysis Window: On_Spectrum_Analysis_Window_Properties_Changed
- Spectrum Plot Window: On_Spectrum_Plot_Window_Properties_Changed
- Well Log Window: On_Well_Log_Window_Properties_Changed
- Cross-Plot Window: On_Cross_Plot_Window_Properties_Changed
- Well Layer
- Well Layer Log Curve Shape: On_Well_Layer_Log_Curve_Shape_Properties_Changed
- Well Layer Marker Shape: On_Well_Layer_Marker_Shape_Properties_Changed
- Well Layer Track: On_Well_Layer_Track_Properties_Changed
- Well Layer Track Grid: On_Well_Layer_Track_Grid_Properties_Changed
- Well Log Layer
- Log Curve Shape: On_Log_Curve_Shape_Properties_Changed
- Marker Shape: On_Marker_Shape_Properties_Changed
- Well Log Track: On_Well_Log_Track_Properties_Changed
- Track Grid: On_Well_Log_Track_Grid_Properties_Changed
- Log Array Shape: On_Log_Array_Shape_Properties_Changed
An example is available using On_XSection_Horizon_Layer_Properties_Changed.
INTViewer will define several variables for use in your script depending on the source of the property change event.
If the script is in the On_Properties_Changed folder, then the following properties will be included:
- eventType: description of event including source name
- source: the object whose properties were changed
- properties: a dictionary containing names of properties changed and their values
If the script is for a property change event coming from a specific source then the following variables will be included:
- window: the window whose properties were changed (variable only included if source is a window)
- layer: the layer whose properties where changed (variable only included if source is a layer)
- object: the object whose properties where changed (variable only in included if source is not a layer or window)
- properties: a dictionary containing names of properties changed and their values