Programmable Filter (Programmable Filter)
Executes a user supplied python script on its input dataset to produce an output dataset.
This filter will execute a python script to produce an output dataset.

The filter keeps a copy of the python script in Script, and creates

Interpretor, a python interpretor to run the script upon the first

execution.

PropertyDescriptionDefault Value(s)Restrictions
Script (RequestInformation)
(InformationScript)
This property is a python script that is executed during the RequestInformation pipeline pass. Use this to provide information such as WHOLE_EXTENT to the pipeline downstream.    
Input
(Input)
This property specifies the input(s) to the programmable filter.  

The selected object must be the result of the following: sources (includes readers), filters.

The selected dataset must be one of the following types (or a subclass of one of them): vtkDataSet.

 
Output Data Set Type
(OutputDataSetType)
The value of this property determines the dataset type for the output of the programmable filter. 8

The value must be one of the following: Same as Input (8), vtkPolyData (0), vtkStructuredGrid (2), vtkRectilinearGrid (3), vtkUnstructuredGrid (4), vtkImageData (6).

 
Parameters
(Parameters)
     
Script
(Script)
This property contains the text of a python program that the programmable filter runs.