[Paraview] ParaView python vs VTK python api (UNCLASSIFIED)

2014-08-06 Thread Su, Simon M CTR USARMY ARL (US)
Classification: UNCLASSIFIED Caveats: NONE Hello, I would like to run some of my VTK python code under ParaView (pvbatch or pvpython). Where can I find documentation on porting VTK python code to use ParaView python api? I need to create some VTK object in ParaView. Is there a shortcut

Re: [Paraview] ParaView python vs VTK python api (UNCLASSIFIED)

2014-08-06 Thread Andy Bauer
, Aug 6, 2014 at 3:28 PM, Su, Simon M CTR USARMY ARL (US) simon.m.su@mail.mil wrote: Classification: UNCLASSIFIED Caveats: NONE Hello, I would like to run some of my VTK python code under ParaView (pvbatch or pvpython). Where can I find documentation on porting VTK python code to use

Re: [Paraview] ParaView python vs VTK python api (UNCLASSIFIED)

2014-08-06 Thread Sebastien Jourdain
Hi Simon, if the VTK work that you are targeting is not parallel, you can directly run a vtkpython script inside pvpython or pvbatch. Otherwise Andy is right, you can not mix parallel ParaView and VTK python code. Seb On Wed, Aug 6, 2014 at 1:35 PM, Andy Bauer andy.ba...@kitware.com wrote

Re: [Paraview] ParaView python vs VTK python api (UNCLASSIFIED)

2014-08-06 Thread Su, Simon M CTR USARMY ARL (US)
to the catalyst question I asked. Luckily the user's code is in python already and Sean Ziegeler mentioned to bypass catalyst and just call ParaView using PV Python api (and run the simulation code python script using pvbath/pvpython). But the user's code is in VTK python and not ParaView

Re: [Paraview] ParaView python vs VTK python api (UNCLASSIFIED)

2014-08-06 Thread David E DeMarle
vtk objects somewhere. Which is why it is not typically safe to mix vtk and paraview python code and do things like modifying the input data sets. See python trace and the paraview python wiki page to learn about this level of scripting. Within the python programmable filter and source, you

Re: [Paraview] ParaView python vs VTK python api (UNCLASSIFIED)

2014-08-06 Thread Andy Bauer
Hi Simon, There is more information at http://www.paraview.org/Wiki/Python_Programmable_Filter. The ParaView Python API is meant for the client side of ParaView while the VTK Python API is meant for the server side. You can mix and match a bit by using Fetch() (see http://www.paraview.org/Wiki

Re: [Paraview] ParaView python vs VTK python api (UNCLASSIFIED)

2014-08-06 Thread Su, Simon M CTR USARMY ARL (US)
+ catalyst). If the code is not parallel, maybe we can just skip ParaView completely and just use VTK to pop up the window and do the rendering when the data is generated? Or if the code is not parallel, we should change all the VTK python code into ParaView python code? And run it with pvpython. Which

Re: [Paraview] ParaView python vs VTK python api (UNCLASSIFIED)

2014-08-06 Thread Su, Simon M CTR USARMY ARL (US)
Classification: UNCLASSIFIED Caveats: NONE Dave, Thank you for the explanation. I have a better understand now on ParaView python and VTK python. Thanks -simon -Original Message- From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of David E DeMarle Sent: Wednesday

Re: [Paraview] ParaView python vs VTK python api (UNCLASSIFIED)

2014-08-06 Thread Su, Simon M CTR USARMY ARL (US)
: [Paraview] ParaView python vs VTK python api (UNCLASSIFIED) Hi Simon, There is more information at http://www.paraview.org/Wiki/Python_Programmable_Filter. The ParaView Python API is meant for the client side of ParaView while the VTK Python API is meant for the server side. You can mix and match

Re: [Paraview] ParaView python vs VTK python api (UNCLASSIFIED)

2014-08-06 Thread Sebastien Jourdain
[mailto:andy.ba...@kitware.com] Sent: Wednesday, August 06, 2014 3:54 PM To: Su, Simon M CTR USARMY ARL (US) Cc: paraview@paraview.org Subject: Re: [Paraview] ParaView python vs VTK python api (UNCLASSIFIED) Hi Simon, There is more information at http://www.paraview.org/Wiki

[Paraview] python and *.vtk

2010-07-15 Thread llapis Pencil
Hi once again, I still haven't achieve to open the *.vtk file with a python script. I tried mainly two different ways: 1. Has you said, with the OpenDataFile command. But I get the error below, as it could not read *.vtk file. #Python script from paraview.simple import * reader =

Re: [Paraview] python and *.vtk

2010-07-15 Thread Utkarsh Ayachit
There's a bug in 3.8.0 in OpenDataFile() which will be fixed in 3.8.1 (already fixed in release branch). Use the attached script as a sample. It has a newer fixed version of OpenDataFile(). The second sample you used was incorrect since you are mixing VTK-python scripting with ParaView's python