[Paraview] Applying filters from Python Shell

Magician f_magician at mac.com
Sat Aug 18 09:13:10 EDT 2012


Hi David,


Thanks for your reply.
Executing Show() command, the Calculator Filter is activated.

# Show() command isn't recorded by "Start Trace",
# so I didn't think of it.


Magician


On 2012/08/17, at 23:55, David E DeMarle wrote:

> Show()
> 
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909
> 
> 
> On Fri, Aug 17, 2012 at 10:00 AM, Magician <f_magician at mac.com> wrote:
>> 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