[Paraview] SplineSource and python script

2011-02-18 Thread Jérôme
Hi, I have some difficulties to have the SplineSource working properly through a python script. First, I created a spline by hand and saved the state as a python file. I simplified it in order to keep only the SplineSource settings (file attached). When I execute this script (ParaView-3.10-RC1), I

Re: [Paraview] SplineSource and python script

2011-02-18 Thread pat marion
Hi Jerome, It looks like the ParametricFunction property of the SplineSource is not python friendly. I can confirm this bug. As a workaround, you can do this: s.ParametricFunction.SetPropertyWithName("Closed", 1) s.ParametricFunction.SetPropertyWithName("Points", [x,y,z, x2,y2,z2]) I think par

Re: [Paraview] SplineSource and python script

2011-02-18 Thread Jérôme
Hi, It works like a charm! Thank you very much. You are right: I get the expected error message, but the spline is correctly initialized. Jerome 2011/2/18 pat marion : > Hi Jerome, > > It looks like the ParametricFunction property of the SplineSource is not > python friendly.  I can confirm this