[Paraview] Variable in Calculator Filter in batch script

Andy Bauer andy.bauer at kitware.com
Fri Aug 8 20:29:02 EDT 2014


I think the following should work:
A = 500
Calculator1.Function = 'min(coordsZ,'+str(A)+')'




On Fri, Aug 8, 2014 at 5:57 PM, denis cohen <denis.cohen at gmail.com> wrote:

> Hi,
>
> I'd like to pass a variable name to the Calculator Filter in a batch
> script, something like
> A=500
> Calculator1.Function = 'min(coordsZ,A)'
>
> This gives an error message:
> "...Syntax error: expecting a variable name...".
>
> What's the correct form?
>
> Thank you
> Denis
>
>
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140808/757205f2/attachment.html>


More information about the ParaView mailing list