[Paraview] Applying filters from Python Shell

David E DeMarle dave.demarle at kitware.com
Fri Aug 17 10:55:00 EDT 2012


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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview


More information about the ParaView mailing list