I started updating http://paraview.org/Wiki/ParaView/Python_Scripting to reflect the changes to the Python API coming in 3.6. We hope that this will make it much easier for everyone to use ParaView from Python. We are also working on the ability to save trace and state as Python scripts.
-berk On Tue, May 19, 2009 at 9:41 AM, Jean Favre <[email protected]> wrote: > On 19, May 2009 12:13 PM, BOUSSOIR Jonathan 167706 > <[email protected]> wrote: > >>Hi all, >> >>I am using Linux and Paraview 3.4 or 3.5. I have one question when I >>use a filter on Paraview 3.5 I have a error. >>I laught python script with pvpython (or ipython) and paraview 3.4 my >>script is running but with paraview 3.5 I have been a Attribut Error >>with :reprShrink.ColorArrayName = "Normals" >> >>I don't know why it don't understand a attribut "Normals" on paraview >>3.5 > > The error you are seeing with version 3.5 is due to the fact that you > loaded the python modules using the old syntax: > > from paraview import servermanager > > try changing it by typing: > > from paraview.simple import * > > and your error disappears. > > Jean -- > Swiss National Supercomputing Center > > _______________________________________________ > 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 > _______________________________________________ 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
