Re: [Paraview] Paraview python - loop to run through multiple files

2017-07-07 Thread Cory Quammen
Rebekah, I think you want to write LoadState("/home/sophy/Desktop/%s.pvsm" % x) to properly substitute your filename held in x into the path. Also, you may want to clear out the loaded state after saving the image, which you can do by calling Disconnect() Connect() HTH, Cory On Fri, Jul 7,

[Paraview] Paraview python - loop to run through multiple files

2017-07-07 Thread Rebekah L
Hey :) I'm trying to script some code so that I can load a file in and then WriteImage and then I want this to loop through multiple files so I don't have to change the code each time for the new path. My problem is that paraview won't recognise a path unless it is the exact path, so I can't get it

Re: [Paraview] Paraview Python best practise?

2017-06-23 Thread David E DeMarle
On Fri, Jun 23, 2017 at 12:44 PM, Shuhao Wu wrote: > Hello, > > I was wondering if there are any sort of general best practise when > writing Python based Paraview scripts for visualizations. From the > materials I've gathered, everything feels very much like mutating a global > state machine, wh

[Paraview] Paraview Python best practise?

2017-06-23 Thread Shuhao Wu
Hello, I was wondering if there are any sort of general best practise when writing Python based Paraview scripts for visualizations. From the materials I've gathered, everything feels very much like mutating a global state machine, which might not be the best if you want to turn certain actio

Re: [Paraview] Paraview-python in my server

2017-05-17 Thread José Luis López López
thanks guys I will try now, Jose On Wed, May 17, 2017 at 2:36 PM, Utkarsh Ayachit < utkarsh.ayac...@kitware.com> wrote: > José, > > You'd need ParaView binaries with OSMesa support if your linux server > doesn't have an X server. While typically, we suggest you build ParaView > from source, for P

Re: [Paraview] Paraview-python in my server

2017-05-17 Thread Utkarsh Ayachit
José, You'd need ParaView binaries with OSMesa support if your linux server doesn't have an X server. While typically, we suggest you build ParaView from source, for ParaView 5.3, we have uploaded OSMesa capable binaries. You can download that from here: http://www.paraview.org/files/v5.3/ParaVie

[Paraview] Paraview-python in my server

2017-05-17 Thread José Luis López López
Hi! Everyone, I am familiar with ParaView Python scripting, however I need to run the script in a linux server without graphical interface, how can I install ParaView and disable graphical interface? any suggestions, Jose ___ Powered by www.kitware.com

Re: [Paraview] ParaView, Python and the CLR

2016-11-07 Thread Chuck Atkins
Hi Chris, import clr > clr.AddReference("DHI.Generic.MikeZero.DFS") > from DHI.Generic.MikeZero.DFS import * > > This works well in "stand alone" python scripts. I tried using the same > approach in ParaView/Programmable Source, but it can't find the CLR module. > If you're using the ParaView c

Re: [Paraview] ParaView, Python and the CLR

2016-11-04 Thread Christian Gabriel
2016 6:30 PM To: Christian Gabriel; Cc: paraview@paraview.org; Subject:Re: [Paraview] ParaView, Python and the CLR You may need to set things like your PYTHONPATH and LD_LIBRARY_PATH in the programmable source itself instead of in the environment you're running ParaView from. For

Re: [Paraview] ParaView, Python and the CLR

2016-11-04 Thread Andy Bauer
You may need to set things like your PYTHONPATH and LD_LIBRARY_PATH in the programmable source itself instead of in the environment you're running ParaView from. For example: import sys sys.path.append("/home/me/mypy") Remember that the programmable source runs the script on the server. On Fri,

[Paraview] ParaView, Python and the CLR

2016-11-04 Thread Christian Gabriel
Good day I'm trying to use a Programmable Source to read data from a proprietary file format (DHI/MikeZero). I have access to its SDK via Python, however, it uses managed code (natively written in C#), hence I got my environment set up to use the CLR module and add references to the MikeZero S

Re: [Paraview] Paraview python script: passing images to PIL (python image library)

2016-10-12 Thread David E DeMarle
heers, > > > Frank. > > *From:* ParaView [mailto:paraview-boun...@paraview.org] *On Behalf Of *Albina, > Frank > *Sent:* Mittwoch, 12. Oktober 2016 20:01 > *To:* David E DeMarle > *Cc:* Del Citto, Francesco; paraview@paraview.org > > *Subject:* Re: [Paravi

Re: [Paraview] Paraview python script: passing images to PIL (python image library)

2016-10-12 Thread Albina, Frank
, Francesco; paraview@paraview.org Subject: Re: [Paraview] Paraview python script: passing images to PIL (python image library) David, that’s excellent. Thanks a lot. Frank. From: David E DeMarle [mailto:dave.dema...@kitware.com] Sent: Mittwoch, 12. Oktober 2016 19:56 To: Albina, Frank Cc: paraview

Re: [Paraview] Paraview python script: passing images to PIL (python image library)

2016-10-12 Thread Albina, Frank
David, that’s excellent. Thanks a lot. Frank. From: David E DeMarle [mailto:dave.dema...@kitware.com] Sent: Mittwoch, 12. Oktober 2016 19:56 To: Albina, Frank Cc: paraview@paraview.org; Del Citto, Francesco Subject: Re: [Paraview] Paraview python script: passing images to PIL (python image

Re: [Paraview] Paraview python script: passing images to PIL (python image library)

2016-10-12 Thread David E DeMarle
Look into the cinemaIO directory of ParaView. We move back and forth between paraview, numpy and PIL often there. For example: image = self.view.CaptureWindow(1) ext = image.GetExtent() width = ext[1] - ext[0] + 1 height = ext[3] - ext[2] + 1 imagescalars = image.GetPointData().GetScalars() idata

[Paraview] Paraview python script: passing images to PIL (python image library)

2016-10-12 Thread Albina, Frank
All, A simple question: my incentive is to manipulate images using PIL in a pvbatch script. At the time being, I am writing the images to file in PNG format and reading the file again from disc using PIL. I have found out that the underlying image writing is performed by the vtkPNGWriter class a

[Paraview] paraview python anaconda

2016-06-09 Thread Giorgino R
Dear users, I would like to use PyQt4 with Paraview. I have installed Paraview from pre-compiled binaries. When I am using pvpython, I cannot use PyQt4 since this is not installed. Is there any chance that I could install PyQt4 with pvpython? Otherwise, does any of you know how to configure Paravi

Re: [Paraview] paraview python scripting equivalent of File->save Data of contour

2015-11-14 Thread Enrique Lizarraga-Garcia
Hi Cory, Thank you so much! It works after specifying the fill path. Best regards, Enrique On Nov 12, 2015, at 8:31 PM, Cory Quammen wrote: > Hi Enrique, > > It looks like the writer is attempting to write to / and doesn't have > permission to do so. Try specifying the full path in the 'name

Re: [Paraview] paraview python scripting equivalent of File->save Data of contour

2015-11-12 Thread Cory Quammen
Hi Enrique, It looks like the writer is attempting to write to / and doesn't have permission to do so. Try specifying the full path in the 'name' variable. HTH, Cory On Thu, Nov 12, 2015 at 6:02 PM, Enrique Lizarraga-Garcia < enriliz...@gmail.com> wrote: > Hi all, > > I would like to automate e

[Paraview] paraview python scripting equivalent of File->save Data of contour

2015-11-12 Thread Enrique Lizarraga-Garcia
Hi all, I would like to automate exporting csv files from countour of vtk files. I am tracing the steps in paraview, but it somehow misses the last part, saving/exporting as csv. When I do it manually, it saves n csv files, where n is the number of blocks I have in my simulation. I have success

Re: [Paraview] Paraview - Python // cell types issues

2015-10-20 Thread Joachim Pouderoux
Damian, What you want to do is basically to process the data. To do so, the best way is to create a filter that will process them into the pipeline. If you work in Python, use the Programmable Filter. Take a look at the related wiki page: http://www.paraview.org/Wiki/Python_Programmable_Filter Be

[Paraview] Paraview - Python // cell types issues

2015-10-20 Thread DamB
Hello, I would like to check all cell types on a created pipeline slice with a loop and do some further calculation based on the cell type. My first test wit 'servermanager.Fetch()' failed, I have tried to get access by using 'source.GetDataInformation() ...', but it does not work. I was only

Re: [Paraview] paraview python script : Delete(renderView1) does not free memory

2015-07-15 Thread Raj Kumar Manna
Thanks Utkarsh. This script solved my problem. On Wed, Jul 15, 2015 at 7:44 PM, Utkarsh Ayachit < utkarsh.ayac...@kitware.com> wrote: > Delete() will only remove the render view, not all other proxies that were > created as part of the state loading operation. The following script should > do the

Re: [Paraview] paraview python script : Delete(renderView1) does not free memory

2015-07-15 Thread Utkarsh Ayachit
Delete() will only remove the render view, not all other proxies that were created as part of the state loading operation. The following script should do the trick: from paraview.simple import * def ResetSession():

[Paraview] paraview python script : Delete(renderView1) does not free memory

2015-07-14 Thread Raj Kumar Manna
Dear All, I am trying to load multiple state files by running a python script with python shell. The script is the following import the simple module from the paraview from paraview.simple import * for time in range(0,200): renderView1 = GetActiveViewOrCreate('RenderView')

Re: [Paraview] Paraview Python Multiprocessing

2015-05-26 Thread Bruce Jones
Ok thanks Utkarsh On Tue, 26 May 2015 at 13:20 Utkarsh Ayachit wrote: > Bruce, > > Alas, you'll need to build from source (or wait till the changes land > in ParaView nightly binaries). It's indeed a bug in the code that > needs to be compiled. > > Utkarsh > > On Tue, May 26, 2015 at 1:16 PM, Br

Re: [Paraview] Paraview Python Multiprocessing

2015-05-26 Thread Utkarsh Ayachit
Bruce, Alas, you'll need to build from source (or wait till the changes land in ParaView nightly binaries). It's indeed a bug in the code that needs to be compiled. Utkarsh On Tue, May 26, 2015 at 1:16 PM, Bruce Jones wrote: > Thanks for the quick response Utkarsh. However, I am using the windo

Re: [Paraview] Paraview Python Multiprocessing

2015-05-26 Thread Bruce Jones
Thanks for the quick response Utkarsh. However, I am using the windows binaries and have not built paraview from scratch. Cheers, Bruce On Tue, 26 May 2015 at 12:00 Utkarsh Ayachit wrote: > Bruce, > > Try the attached patch. You'll need to apply it to the VTK subdir > under ParaView. > > Utkars

Re: [Paraview] Paraview Python Multiprocessing

2015-05-26 Thread Utkarsh Ayachit
Bruce, Try the attached patch. You'll need to apply it to the VTK subdir under ParaView. Utkarsh On Tue, May 26, 2015 at 11:29 AM, Bruce Jones wrote: > Hi, > > I am trying to do some parallel programming within paraviews python shell > and have encountered a problem. If I run the following two

[Paraview] Paraview Python Multiprocessing

2015-05-26 Thread Bruce Jones
Hi, I am trying to do some parallel programming within paraviews python shell and have encountered a problem. If I run the following two lines of code in the python shell, the result is that a whole bunch of new paraview sessions will be started... from multiprocessing import Pool pool = Pool();

Re: [Paraview] Paraview/Python script speed extracting data

2015-02-25 Thread Berk Geveci
Hi Christian, Did you identify where the performance bottleneck occurs? Does it perform well if you take out the writing or Fetch? Best, -berk On Fri, Feb 20, 2015 at 8:05 AM, Thomas, Christian wrote: > Hi > > I'm writing a python script that uses several paraview filters. I then > extract dat

[Paraview] Paraview/Python script speed extracting data

2015-02-20 Thread Thomas, Christian
Hi I'm writing a python script that uses several paraview filters. I then extract data from the final filter for further analysis in python. However, I'm having a problem with the speed of the data extraction (can take several minutes). I have tried writing to a file (createwriter) and then rea

[Paraview] Paraview-Python Looping over multiple state files

2014-10-06 Thread Neal,Christopher R
Hello, This is my first time using the Paraview listserv. I am working on a python script to automate the production of images(for purposes to making short videos from a data set). I am using Paraview version 4.1.0-64bit. My data is in an Ensight Gold format, which Paraview seems to read i

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

2014-08-06 Thread Sebastien Jourdain
-Original Message- > From: Andy Bauer [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,

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 Su, Simon M CTR USARMY ARL (US)
, August 06, 2014 3:51 PM To: Sebastien Jourdain Cc: paraview@paraview.org Subject: Re: [Paraview] ParaView python vs VTK python api (UNCLASSIFIED) Adding to what Andy and Seb said, "ParaView can be viewed in some ways a wrapper around VTK filters" + that often exist on remote MPI parallel

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

2014-08-06 Thread Su, Simon M CTR USARMY ARL (US)
Bauer Cc: Su, Simon M CTR USARMY ARL (US); paraview@paraview.org Subject: Re: [Paraview] ParaView python vs VTK python api (UNCLASSIFIED) 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

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

2014-08-06 Thread Andy Bauer
tation that I can look up on the > comparable > Python API between VTK and ParaView? > > Thanks > -simon > > -Original Message- > From: Andy Bauer [mailto:andy.ba...@kitware.com] > Sent: Wednesday, August 06, 2014 3:35 PM > To: Su, Simon M CTR USARMY ARL (US) >

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

2014-08-06 Thread David E DeMarle
Adding to what Andy and Seb said, "ParaView can be viewed in some ways a wrapper around VTK filters" + that often exist on remote MPI parallel processes + "." In Paraview client side scripts (tools->Python Shell or pvpython or pvbatch) you create python objects that create proxies that create rem

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

2014-08-06 Thread Su, Simon M CTR USARMY ARL (US)
u, Simon M CTR USARMY ARL (US) Cc: paraview@paraview.org Subject: Re: [Paraview] ParaView python vs VTK python api (UNCLASSIFIED) It may not be possible to do what you want explicitly. ParaView can be viewed in some ways a wrapper around VTK filters. You can try the programmable filter which us

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 wrote: > It may not be possible

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

2014-08-06 Thread Andy Bauer
It may not be possible to do what you want explicitly. ParaView can be viewed in some ways a wrapper around VTK filters. You can try the programmable filter which uses the VTK Python API but is still intended to operate like a filter (i.e. not modifying the input data sets, etc.). Andy On Wed, A

[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 to this (l

Re: [Paraview] ParaView Python problem

2014-07-07 Thread Utkarsh Ayachit
BTW, this issue has been resolved in the development version of ParaView and the fix will be included in the next release. Utkarsh On Thu, Jun 26, 2014 at 7:48 AM, Utkarsh Ayachit wrote: > I should have read the full email :)...ok..so this fails only with > pvpython. I'll take a look. > > On Thu

Re: [Paraview] ParaView Python problem

2014-06-26 Thread Utkarsh Ayachit
I should have read the full email :)...ok..so this fails only with pvpython. I'll take a look. On Thu, Jun 26, 2014 at 7:47 AM, Utkarsh Ayachit wrote: > Ah! I think the Python calculator is corrupting the global context > since both, the filter and the main script run within the same Python > int

Re: [Paraview] ParaView Python problem

2014-06-26 Thread Utkarsh Ayachit
Ah! I think the Python calculator is corrupting the global context since both, the filter and the main script run within the same Python interpreter. Is this using pvpython or Python shell in the UI? On Thu, Jun 26, 2014 at 6:30 AM, Ian Krukow wrote: > Hi all, > > I like to keep different modules

[Paraview] ParaView Python problem

2014-06-26 Thread Ian Krukow
Hi all, I like to keep different modules apart in python, therefore I use import paraview.simple as pv instead of from paraview.simple import * I never had problems with this, until I included the Python Calculator in my script. Whenever I call "pv.Show()" on the Python Calculator, "pv"

[Paraview] ParaView python script - save pipeline data

2014-04-29 Thread Su, Simon M CTR USARMY ARL (US)
hello, How do you write the output of the extract CTH parts filter to either pvd or vtk file format using python script? Using the PV GUI, the menu option save geometry will save the output to pvd formatted files. I am using ParaView-4.1.0 on RHEL 5- 64bit (and RHEL 6 64bit). If I open PV and

Re: [Paraview] ParaView python scripting - capture from ParaView GUI

2014-04-03 Thread David E DeMarle
eed a different writer class? > > thanks > -simon > > -- > *From:* David E DeMarle [dave.dema...@kitware.com] > *Sent:* Thursday, April 03, 2014 12:42 PM > *To:* Su, Simon M CTR USAF (US) > *Cc:* paraview@paraview.org > *S

Re: [Paraview] ParaView python scripting - capture from ParaView GUI

2014-04-03 Thread Su, Simon M CTR USAF (US)
, April 03, 2014 12:42 PM To: Su, Simon M CTR USAF (US) Cc: paraview@paraview.org Subject: Re: [Paraview] ParaView python scripting - capture from ParaView GUI -- start python script -- try: paraview.simple except: from paraview.simple import * parav

Re: [Paraview] ParaView python scripting - capture from ParaView GUI

2014-04-03 Thread David E DeMarle
-- start python script -- > try: paraview.simple > > except: from paraview.simple import * > > paraview.simple._DisableFirstRenderCameraReset() > > > Cone1 = Cone() > > > RenderView1 = GetRenderView() > > > DataRepresentation1 = Show() > > DataRepresentation1.Sc

Re: [Paraview] ParaView python scripting - capture from ParaView GUI

2014-04-03 Thread Aashish Chaudhary
I believe, the trace does not capture the inputs and the outputs. What you can do instead, is take the output of trace, add code to it for input and output and run using pvpython. On Thu, Apr 3, 2014 at 11:56 AM, Su, Simon M CTR USAF (US) < simon.m.su@mail.mil> wrote: > Hello there, > > I

[Paraview] ParaView python scripting - capture from ParaView GUI

2014-04-03 Thread Su, Simon M CTR USAF (US)
Hello there, I am trying to cook up a batch file for the visualization pipeline that I am doing on ParaView GUI so that I can run that same sequence in batch mode and in parallel using pvbatch. I can get most of the python script using the Tool->Start Trace option on ParaView GUI. However, Star

Re: [Paraview] ParaView python in a generic python

2014-02-04 Thread Sebastien Jourdain
Hi Alan, here is the way I do it when I code stuff in Sublime Text and directly execute code within the editor. import sys pv_path = '/Users/seb/work/code/ParaView/build-ninja' sys.path.append('%s/lib' % pv_path) sys.path.append('%s/lib/site-packages' % pv_path) from paraview.simple import * Se

Re: [Paraview] ParaView python in a generic python

2014-02-04 Thread Andy Bauer
Hi Alan, Are they working from a version of ParaView that used the installers? That's what I'm assuming for my next comments. For Mac I think they need to use DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH. I tried going through to do this myself and wasn't able to completely do it but was getting f

[Paraview] ParaView python in a generic python

2014-02-03 Thread Scott, W Alan
I have two users that wants to use ParaView paraview.simple commands from a generic version of Python (i.e., not pvpython). Are there any tricks to getting this to work? One user is on a Mac, the other is on Linux. As you can see, my user is having issues even importing paraview.simple. Here

Re: [Paraview] ParaView Python console with scipy

2013-12-10 Thread Felipe Bordeu
I finally did it the dirty way. I just copied (from the scipy sources) the functions needed to make my project work. Felipe Le 09/12/2013 16:46, Utkarsh Ayachit a écrit : You cannot mix and match Python provided by ParaView and system python. You'll have to build ParaView from source if you

Re: [Paraview] ParaView Python console with scipy

2013-12-09 Thread Utkarsh Ayachit
You cannot mix and match Python provided by ParaView and system python. You'll have to build ParaView from source if you'd like to do that, I am afraid. Utkarsh On Mon, Dec 9, 2013 at 10:43 AM, Felipe Bordeu wrote: > Hello, > > I'm trying to make my python script work with scipy but I'm unable m

[Paraview] ParaView Python console with scipy

2013-12-09 Thread Felipe Bordeu
Hello, I'm trying to make my python script work with scipy but I'm unable make it work. I tried : the Paraview 4.0.1(pvpyton from the web) in linux (64 ubuntu 12.04) with the scipy of my system (/usr/lib/python2.7/dist-packages ) and I get : ... Traceback (most recent call last): File

Re: [Paraview] paraview python error: Cannot import vtkPVServerManagerApplicationPython paraview version 4.0.1

2013-10-30 Thread Utkarsh Ayachit
I forget why that was happening with Mac binaries on 4.0.1, but it's safe to ignore it. I'll check to make sure that still not still the case. Utkarsh On Tue, Oct 29, 2013 at 7:13 PM, Cook, Rich wrote: > Hello, > I am running the paraview 4.0.1 binary on my Mac and when I went to tools > --> Pyt

[Paraview] paraview python error: Cannot import vtkPVServerManagerApplicationPython paraview version 4.0.1

2013-10-29 Thread Cook, Rich
Hello, I am running the paraview 4.0.1 binary on my Mac and when I went to tools --> Python Shell, a new window pops up with the following output which looks bad to me. Since I have never done any paraview python scripting, I wonder if someone can tell me if this is normal. It looks rather seri

Re: [Paraview] Paraview Python scripting

2011-11-03 Thread pat marion
gt; >>> >>> >>> On Tue, Nov 1, 2011 at 10:13 AM, David Dupuis < >>> david.dup...@cadensimaging.com> wrote: >>> >>>> Sta.py is a Python state file I have created using “Save state” in the >>>> GUI. Yes, it needs to open the GU

Re: [Paraview] Paraview Python scripting

2011-11-01 Thread Cheng Zhang
> david.dup...@cadensimaging.com> wrote: >> >>> Sta.py is a Python state file I have created using “Save state” in the >>> GUI. Yes, it needs to open the GUI and load the whole pipeline saved in the >>> Python State file. >>> >>> >>>

Re: [Paraview] Paraview Python scripting

2011-11-01 Thread pat marion
* Adriano Gagliardi [mailto:agaglia...@ara.co.uk] >> *Envoyé :* 1 novembre 2011 10:07 >> *À :* 'David Dupuis'; 'Utkarsh Ayachit' >> *Cc :* paraview@paraview.org >> *Objet :* RE: [Paraview] Paraview Python scripting >> >> >> >>

Re: [Paraview] Paraview Python scripting

2011-11-01 Thread Utkarsh Ayachit
re 2011 10:07 > *À :* 'David Dupuis'; 'Utkarsh Ayachit' > *Cc :* paraview@paraview.org > *Objet :* RE: [Paraview] Paraview Python scripting > > > > What does sta.py do that it needs to open the GUI? Do you mean an X11 > window? > > > >

Re: [Paraview] Paraview Python scripting

2011-11-01 Thread David Dupuis
7;; 'Utkarsh Ayachit' *Cc :* paraview@paraview.org *Objet :* RE: [Paraview] Paraview Python scripting What does sta.py do that it needs to open the GUI? Do you mean an X11 window? === Adriano Gagliardi MEng PhD Business Sector Leader Computational

Re: [Paraview] Paraview Python scripting

2011-11-01 Thread Adriano Gagliardi
Url: www.ara.co.uk _ From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On Behalf Of David Dupuis Sent: 01 November 2011 14:00 To: Utkarsh Ayachit Cc: paraview@paraview.org Subject: Re: [Paraview] Paraview Python scripting Hello Utkarsh, The Python Shell

Re: [Paraview] Paraview Python scripting

2011-11-01 Thread David Dupuis
ything... Thanks again! David *De :* Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com] *Envoyé :* 1 novembre 2011 09:35 *À :* David Dupuis *Cc :* paraview@paraview.org *Objet :* Re: [Paraview] Paraview Python scripting Have you tried using the pvpython executable? It's sets up the environmen

Re: [Paraview] Paraview Python scripting

2011-11-01 Thread Utkarsh Ayachit
Have you tried using the pvpython executable? It's sets up the environment correctly for you. Alternatively, from the GUI, you can open the Python Shell and and then use the "Load Script" button to load the script. Utkarsh On Tue, Nov 1, 2011 at 9:28 AM, David Dupuis wrote: > Hello, > > > > I’m

[Paraview] Paraview Python scripting

2011-11-01 Thread David Dupuis
Hello, I’m manipulating different dataset and for each of them I have a different setup (pipeline). I saved the state as a python file and plan to re-use the python state file to re-open the whole pipeline for each dataset. It seems that only *.psvm files can be loaded via “File -> Load state”

Re: [Paraview] Paraview python option "Show Plane" for slices

2011-07-26 Thread Adriano Gagliardi
aglia...@ara.co.uk Url: www.ara.co.uk _ From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On Behalf Of Raphael Muenster Sent: 26 July 2011 14:15 To: paraview@paraview.org Subject: [Paraview] Paraview python option "Show Plane" for slices Hello, I am

[Paraview] Paraview python option "Show Plane" for slices

2011-07-26 Thread Raphael Muenster
Hello, I am trying to make screenshots with a python script, in principal it works, but just one detail is not working how I would like it to be. I applied a Slice filter with type 'Plane' to my input and I want to take a screenshot of the slice. In the GUI (in the Properties tab of the slice

Re: [Paraview] ParaView + Python: WriteImage screenshots broken?

2011-06-08 Thread Nico Schlömer
That did the trick! Thanks. --Nico On Wed, Jun 8, 2011 at 6:19 PM, pat marion wrote: > Try GetRenderView() instead of GetActiveView().  GetRenderView will get the > active render view or create one if one does not already exist. > > Pat > > On Wed, Jun 8, 2011 at 12:16 PM, Nico Schlömer > wro

Re: [Paraview] ParaView + Python: WriteImage screenshots broken?

2011-06-08 Thread pat marion
Try GetRenderView() instead of GetActiveView(). GetRenderView will get the active render view or create one if one does not already exist. Pat On Wed, Jun 8, 2011 at 12:16 PM, Nico Schlömer wrote: > What do you mean by "v"? > > I took a wild guess and did > > == *snip* =

Re: [Paraview] ParaView + Python: WriteImage screenshots broken?

2011-06-08 Thread Nico Schlömer
What do you mean by "v"? I took a wild guess and did == *snip* == from paraview.simple import * reader = ExodusIIReader(FileName="solution.e") view = GetActiveView() view.UseOffscreenRenderingForScreenshots = 0 Show() Render() WriteImage("test.png") == *snap* =

Re: [Paraview] ParaView + Python: WriteImage screenshots broken?

2011-06-08 Thread Utkarsh Ayachit
Try setting: v.UseOffscreenRenderingForScreenshots = 0 before calling WriteImage. Does that help? Utkarsh On Wed, Jun 8, 2011 at 12:01 PM, Nico Schlömer wrote: > Yeah, render works fine. > > --Nico > > > > On Wed, Jun 8, 2011 at 6:01 PM, Utkarsh Ayachit > wrote: >> Does simply calling  "Rend

Re: [Paraview] ParaView + Python: WriteImage screenshots broken?

2011-06-08 Thread Nico Schlömer
Yeah, render works fine. --Nico On Wed, Jun 8, 2011 at 6:01 PM, Utkarsh Ayachit wrote: > Does simply calling  "Render()" work? > > Utkarsh > > On Wed, Jun 8, 2011 at 11:22 AM, Nico Schlömer > wrote: >> Hi, >> >> everytime I call >> >>   WriteImage("test.png") >> >> from on the python interfa

Re: [Paraview] ParaView + Python: WriteImage screenshots broken?

2011-06-08 Thread Utkarsh Ayachit
Does simply calling "Render()" work? Utkarsh On Wed, Jun 8, 2011 at 11:22 AM, Nico Schlömer wrote: > Hi, > > everytime I call > >   WriteImage("test.png") > > from on the python interface, no screenshot is created and instead the > error message > > == *snip* ==

[Paraview] ParaView + Python: WriteImage screenshots broken?

2011-06-08 Thread Nico Schlömer
Hi, everytime I call WriteImage("test.png") from on the python interface, no screenshot is created and instead the error message == *snip* == X Error of failed request: BadRequest (invalid request code or no such operation) Major opcode of failed request:

[Paraview] Paraview Python Build

2011-03-15 Thread owen.arnold
Hi, I've been able to build Paraview on my x64 windows 7 machine using cmake/vs2010. I recently tried to build the python components of paraview on the same platform. I can create and generate the solution okay, but the build fails with: fatal error C1083: Cannot open source file: 'vtkAbstract

Re: [Paraview] Paraview Python Script with PVFWrap

2011-01-26 Thread Fabian Braennstroem
Hello Pat, thanks for the explanation and help! Best Regards! Fabian On 01/26/2011 04:42 PM, pat marion wrote: Hi Fabian, Please remember to include the paraview mailing list when you reply. What you report is a bug, but you can avoid it- when you open your openfoam dataset you should check

Re: [Paraview] Paraview Python Script with PVFWrap

2011-01-26 Thread pat marion
Hi Fabian, Please remember to include the paraview mailing list when you reply. What you report is a bug, but you can avoid it- when you open your openfoam dataset you should check each block that you want to load *before you hit apply for the first time* The problem is the first time you load y

Re: [Paraview] Paraview Python Script with PVFWrap

2011-01-25 Thread Fabian Braennstroem
Oh, sorry... at work I got 3.8.1, I mixed this up. I thought that I had there similar behavior (not the error message)... I will check again. Best Regards! Fabian On 01/24/2011 09:45 PM, pat marion wrote: You are using 3.8.0, not 3.8.1. If you use 3.8.1 to generate the trace script you will n

Re: [Paraview] Paraview Python Script with PVFWrap

2011-01-24 Thread pat marion
You are using 3.8.0, not 3.8.1. If you use 3.8.1 to generate the trace script you will not receive these errors. Your script can also be fixed by hand- editing test_trace.py and move the lines at the very bottom modifying Slice1, Slice2 and Slice3. Moving the lines up so they appear after the

Re: [Paraview] Paraview Python Script with PVFWrap

2011-01-24 Thread pat marion
Hi Fabian, Regarding your issue of python trace state not replicating your paraview state exactly, I believe both issues you quote (camera position and cut filter's slice property) have been addressed in the latest version of paraview. If not, can you list the steps required to repeat the problem

Re: [Paraview] Paraview Python Script with PVFWrap

2011-01-24 Thread Fabian Braennstroem
Hello, thanks for the info! Is my impression correct, that in version 3.8.1 the python trace state process is not as 'complete' as using the old state file approach? For my case setup, e.g. there is not always the correct camera position and the correct slices... Best Regards! Fabian On 01/2

Re: [Paraview] Paraview Python Script with PVFWrap

2011-01-24 Thread David E DeMarle
That page is ancient. I think PVFWrap was the predecessor to paraview.simple which since 3.6 is the standard way to do ParaView python scripting (see python trace). The comments about paraview state files being too verbose have been addressed since then as well. Or did you mean something else? D

Re: [Paraview] Paraview Python Script with PVFWrap

2011-01-24 Thread Weirs, V Gregory
No. PVFWrap was a prototype interface that has been substantially improved to become the current paraview.simple. Most people use the python trace to establish their initial python scripts and then modify them, but if you know the names of the filters and only want to specify changes from defau

[Paraview] Paraview Python Script with PVFWrap

2011-01-24 Thread Fabian Braennstroem
Hi, I just found this page and wonder, if this will be a new approach for python scripting: http://www.paraview.org/ParaView3/index.php/Visualization_Script_Examples#Paraview_Python_Script_with_PVFWrap In addition, there are comments about the VisIt way... do you plan something like this!?

[Paraview] paraview python shell

2010-10-12 Thread Kristina Silverbåge
Hi, I have write i python shript. It working fine in IDLE. But I want to run it in the paraview python shell. I think the problem is that I use a relativ path and not a absolut one. How do i do to make the python shell use relative paths? when I use os.listdir('.') I allways get the same result.

Re: [Paraview] ParaView Python

2010-08-02 Thread Dave Partyka
CMAKE_MACOSX_DEPLOYMENT_TARGET On Mon, Aug 2, 2010 at 8:07 PM, Berk Geveci wrote: > Most probably. The only way to get around this (and other similar problems) > is to build ParaView from source using the same version of Python and Qt > as yours. Otherwise, you'll get conflicts. Also, make sure

Re: [Paraview] ParaView Python

2010-08-02 Thread Berk Geveci
Most probably. The only way to get around this (and other similar problems) is to build ParaView from source using the same version of Python and Qt as yours. Otherwise, you'll get conflicts. Also, make sure that your Mac target is the same as your Python when building. I forgot the CMake variable

[Paraview] ParaView Python

2010-08-02 Thread Erik Anderson
Hi all, I am trying to import paraview.simple from an external Python interpreter. I am trying to use the ParaView 3.8.0 binary distribution and I have all my paths setup properly, but I'm getting the following error: >>> import paraview.simple Traceback (most recent call last): File "",

Re: [Paraview] Paraview: python script from the command line

2010-05-06 Thread Rick Angelini
I've done some testing, and I agree that it does appear to be working correctly with 3.8.0RC1 and with a recent build of 3.9.0. I tested with "--state=" and "--script=" and both are behaving correctly. I'd say that this ticket can be closed. Robert Maynard wrote: I have updated the bug w

Re: [Paraview] Paraview: python script from the command line

2010-05-06 Thread Robert Maynard
I have updated the bug with my testing. I was unable to reproduce on Windows 7 64bit and Linuxwith 3.8.0RC1 and Git Head. Tested reverse connection as both manual and command startup. Can you confirm that the reverse server setting is saved in one of the pvsc files (http://www.paraview.org/Wiki/Pa

Re: [Paraview] Paraview: python script from the command line

2010-03-29 Thread Utkarsh Ayachit
Ah! But of course :). I am adding it to the bug tracker. http://paraview.org/Bug/view.php?id=10480 Utkarsh On Fri, Mar 26, 2010 at 1:44 PM, Rick Angelini wrote: > Utkarsh - this also works well under some circumstances, but leave it to the > customers to figure out how to break it.   If we start

Re: [Paraview] Paraview: python script from the command line

2010-03-26 Thread Rick Angelini
Utkarsh - this also works well under some circumstances, but leave it to the customers to figure out how to break it. If we startup paraview: paraview --server=Host --script=myscript.py And "Host" is a reverse-connection, the python script executes locally without waiting for the remote serv

Re: [Paraview] Paraview: python script from the command line

2010-03-24 Thread Utkarsh Ayachit
Feel free to add a feature request for that on the bug tracker. http://paraview.org/Bug Utkarsh On Wed, Mar 24, 2010 at 3:58 AM, Mark Olesen wrote: > On Tue, 2010-03-23 at 19:23 -0400, Utkarsh Ayachit wrote: >> I've added a new --script option to specify python script to be run on >> startup.

Re: [Paraview] Paraview: python script from the command line

2010-03-24 Thread Mark Olesen
On Tue, 2010-03-23 at 19:23 -0400, Utkarsh Ayachit wrote: > I've added a new --script option to specify python script to be run on > startup. This is a bit off-topic, but got me thinking about command-line options again. Would there be a way to specify multiple '--data=...' on the command-line?

Re: [Paraview] Paraview: python script from the command line

2010-03-23 Thread Utkarsh Ayachit
I've added a new --script option to specify python script to be run on startup. Utkarsh On Fri, Mar 19, 2010 at 3:49 PM, Utkarsh Ayachit wrote: > That's a reasonable request. We don't have such an option currently. > Let me see if I can add it before 3.8. > > Utkarsh > > On Fri, Mar 19, 2010 at

  1   2   >