[Paraview] Applying filters from Python Shell

Magician f_magician at mac.com
Fri Aug 17 10:00:27 EDT 2012


Hi all,


I'm trying to apply Calculator filter to active source
from the Python Shell.
I executed these codes:
> calc = Calculator()
> calc.AttributeMode = "point_data"
> calc.Function = "iHat+jHat+kHat"
> calc.ResultArrayName = 'SampleVect'

Applying the script, a new Calculator source is generated,
but the source isn't activated on the current view.
Valid sources have eye icons on the Pipeline Browser,
but the Calculator source which is generated by Python
doesn't have it.

How can I finish to generate the filter source from Python?


Magician


More information about the ParaView mailing list