Hi,
it is more a ParaView-related question, so I changed the list name ;)

I tried again the solution Pat proposed in the post, and I am sorry to tell you that it works without changing anything... I just can be more precise. Please follow these steps in the paraview python shell :
s = SplineSource()
s.ParametricFunction.SetPropertyWithName( "Closed", 1 ) # Now, the "Closed Spline" property toggles to "checked"
pointA = [1,2,3]
pointB = [6,5,4]
pointC = [7,8,9]
s.ParametricFunction.SetPropertyWithName( "Points", pointA+pointB+pointC) # Now, the three points appear in the spline points list

Then press apply : the spline appears in the render window.
If you experience problems, please tell me which steps are guilty.

HTH,
Jerome

On 11/26/2011 08:04 AM, Ian Leslie wrote:
Hi,
I saw your post on getting the spline function to work in the pyhthon shell within ParaView on the vtk.org users mailing list and was wondering if you would be willing to share your solution with me. I wasn't able to implement the suggested solution based on the post alone http://markmail.org/search/list:paraview?q=SplineSource+and+python+script#query:list%3Aparaview%20SplineSource%20and%20python%20script+page:1+mid:hhzkv5vj33zv6hky+state:results

Thanks,

Ian


_______________________________________________
Powered bywww.kitware.com

Visit other Kitware open-source projects 
athttp://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ 
at:http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers


_______________________________________________
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

Reply via email to