Re: [Paraview] Python script for aero-optic analysis of CFD results

2016-12-12 Thread Cory Quammen
Ben, Try polydata = paraview.servermanager.Fetch(plotOverLine1) density_array = polydata.GetPointData().GetArray('Density') paraview.servermanager.Fetch retrieves the entire data object so that you can access the array you want. Best, Cory On Fri, Dec 9, 2016 at 2:12 PM, Ben Orr wrote: > Para

Re: [Paraview] Python script for aero-optic analysis of CFD

2016-12-11 Thread Jean-Michel Lucas
Dear Ben, Your data reside on the server side of ParaView, so you can't access it through ParaView proxies (like plotOverLine). Proxies only let you access some info about the data, like min and max. You have two options to access the whole array : - fetch the data from the server to the cli

[Paraview] Python script for aero-optic analysis of CFD results

2016-12-09 Thread Ben Orr
Paraview community, I am trying to batch process CFD results for aero-optic analysis. My plan is to create a series of PlotOverLine interpolations between the sensor and farfield boundary, and then use the data along that ray to do the aero-optic calculations. I will be using pvbatch since I have

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

Re: [Paraview] Python script not working after updating to 5.1

2016-06-30 Thread Utkarsh Ayachit
Can you share the dataset to reproduce the issue? Feel free to send it off the list if needed. Thanks Utkarsh On Wed, Jun 29, 2016 at 11:50 PM, wrote: > I have just updated from Paraview 4.3.1 to 5.1.0 and am having trouble with > a Python script that no longer works correctly. > > The attached

[Paraview] Python script not working after updating to 5.1

2016-06-29 Thread Heather.Sheldon
I have just updated from Paraview 4.3.1 to 5.1.0 and am having trouble with a Python script that no longer works correctly. The attached script cycles through exodus files in a given directory, and for each file plots a surface plot of GlobalElementId overlain with a threshold plot of 2 other c

[Paraview] python script does not run in macro

2016-05-11 Thread Richardson CFD
If I have some python script such as the double helix example attached, it works (runs) in Paraview as programmable filter or programmable source, but it doesn't run in tools > python shell, or as a macro... why is this? -- Richardson CFD https://sites.google.com/site/garcfd

[Paraview] Python script error - MPI

2016-01-19 Thread Ruggiero Guida
Dear Group, I am using a Python script to load a VTK file and render a 2D image. It has always worked fine, but recently I have started to get this error: [python] stderr: Fatal error in MPI_Init: Other MPI error, error stack: [python] stderr: MPIR_Init_thread(392)..: [python] stderr

Re: [Paraview] How to stop a paraview python script on error (try-catch-ing) ?

2016-01-04 Thread Ben Boeckel
On Sat, Jan 02, 2016 at 16:12:49 +0100, houssen wrote: > How to stop a paraview python script on error (try-catch-ing) ? > > I have a filter (which calls vtkErrorMacro when an error occurs). I > have a python script that uses this filter from paraview: how to stop > this scrip

[Paraview] How to stop a paraview python script on error (try-catch-ing) ?

2016-01-02 Thread houssen
Hello, How to stop a paraview python script on error (try-catch-ing) ? I have a filter (which calls vtkErrorMacro when an error occurs). I have a python script that uses this filter from paraview: how to stop this script when an error occurs ? I tried to add "try/except" in core p

Re: [Paraview] Help with optimizing Paraview Python script

2015-10-22 Thread Cory Quammen
sity of Florida > Cell: (863)-697-1958 > E-mail: chrisn...@ufl.edu > > > -- > *From:* Cory Quammen > *Sent:* Wednesday, October 21, 2015 11:18 PM > *To:* Andy Bauer > *Cc:* Neal,Christopher R; paraview@paraview.org > *Subject:* Re: [Paraview] Help with optimizing Paraview Pyth

Re: [Paraview] Help with optimizing Paraview Python script

2015-10-22 Thread Neal,Christopher R
21, 2015 11:18 PM To: Andy Bauer Cc: Neal,Christopher R; paraview@paraview.org Subject: Re: [Paraview] Help with optimizing Paraview Python script A few questions: * How did you obtain the ParaView executable? (download, build)? If you built ParaView in Debug mode, that could slow things down. * H

Re: [Paraview] Help with optimizing Paraview Python script

2015-10-21 Thread Cory Quammen
A few questions: * How did you obtain the ParaView executable? (download, build)? If you built ParaView in Debug mode, that could slow things down. * How big are your data files, both in terms of disk size and grid elements? * How much RAM is on your system? - Cory On Wed, Oct 21, 2015 at 8:50

Re: [Paraview] Help with optimizing Paraview Python script

2015-10-21 Thread Andy Bauer
Did you profile this at all to see where most of the time being spent? Looking at this, I don't see anything really bad. I think you can take out the time.sleep(1.0) part though. Also, replacing the Calculator filter with the PythonCalculator filter should help some. If you're running this in para

[Paraview] Help with optimizing Paraview Python script

2015-10-21 Thread Neal,Christopher R
Hello, I have written a python script that loads in an Ensight data file which has multiple solution times associated with it and performs a set of fairly simple operations on it. It is running very slow, and I'm wondering if there are any experts who use Python to control Paraview that could

Re: [Paraview] FW: adjusting vertical level setting via paraview python script

2015-08-03 Thread Andy Bauer
Yes, that should be the proper workflow. On Mon, Aug 3, 2015 at 4:21 PM, Eatmon Jr., Arnold wrote: > > > From: "", First name Last name > Date: Monday, August 3, 2015 at 2:12 PM > To: Andy Bauer > > Subject: Re: [Paraview] adjusting vertical level setti

[Paraview] FW: adjusting vertical level setting via paraview python script

2015-08-03 Thread Eatmon Jr., Arnold
From: "", First name Last name mailto:aeat...@lanl.gov>> Date: Monday, August 3, 2015 at 2:12 PM To: Andy Bauer mailto:andy.ba...@kitware.com>> Subject: Re: [Paraview] adjusting vertical level setting via paraview python script Unfortunately I do not think that version

Re: [Paraview] adjusting vertical level setting via paraview python script

2015-08-03 Thread Andy Bauer
; Date: Monday, August 3, 2015 at 1:14 PM > To: First name Last name , "Patchett, John M" < > patch...@lanl.gov>, Dave DeMarle , " > paraview@paraview.org" > > Subject: Re: [Paraview] adjusting vertical level setting via paraview > python script > >

Re: [Paraview] adjusting vertical level setting via paraview python script

2015-08-03 Thread Eatmon Jr., Arnold
ect: Re: [Paraview] adjusting vertical level setting via paraview python script Hi, Please reply to everyone so that anyone that wants to follow along with the conversation can. Did you get a chance to look through the Catalyst User's Guide? For MPAS, the names of the adaptor outputs are

Re: [Paraview] adjusting vertical level setting via paraview python script

2015-08-03 Thread Andy Bauer
is active. > > > > > > From: Andy Bauer > Date: Monday, August 3, 2015 at 11:33 AM > To: David E DeMarle > Cc: First name Last name , "Patchett, John M" < > patch...@lanl.gov>, "paraview@paraview.org" > > Subject: Re: [Paraview] adj

Re: [Paraview] adjusting vertical level setting via paraview python script

2015-08-03 Thread Andy Bauer
;> and running at the same time, they both return that the attribute >> VerticalLevel does not exist in that class. It seems to solely exist in >> paraview.simple.NetCDFreader. >> >> >> From: David E DeMarle >> Date: Thursday, July 30, 2015 at 1:45 PM >> To

Re: [Paraview] adjusting vertical level setting via paraview python script

2015-08-03 Thread David E DeMarle
; From: David E DeMarle > Date: Thursday, July 30, 2015 at 1:45 PM > To: First name Last name > Subject: Re: [Paraview] adjusting vertical level setting via paraview > python script > > I verified in the GUI that I can change the level and see it take effect, > so it should work in prin

Re: [Paraview] adjusting vertical level setting via paraview python script

2015-07-30 Thread Eatmon Jr., Arnold
ov>> Subject: Re: [Paraview] adjusting vertical level setting via paraview python script I verified in the GUI that I can change the level and see it take effect, so it should work in principle. You might want to open that file in the paraView GUI and do the same exercise. In your script a coup

Re: [Paraview] adjusting vertical level setting via paraview python script

2015-07-30 Thread Eatmon Jr., Arnold
justing vertical level setting via paraview python script ___ 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: ht

Re: [Paraview] FW: adjusting vertical level setting via paraview python script

2015-07-30 Thread David E DeMarle
one: 518-881-4909 On Thu, Jul 30, 2015 at 3:19 PM, Eatmon Jr., Arnold wrote: > > > From: "", First name Last name > Date: Thursday, July 30, 2015 at 1:12 PM > To: David E DeMarle > Subject: Re: [Paraview] adjusting vertical level setting via paraview > python

[Paraview] FW: adjusting vertical level setting via paraview python script

2015-07-30 Thread Eatmon Jr., Arnold
From: "", First name Last name mailto:aeat...@lanl.gov>> Date: Thursday, July 30, 2015 at 1:00 PM To: David E DeMarle mailto:dave.dema...@kitware.com>> Subject: Re: [Paraview] adjusting vertical level setting via paraview python script I added a line to the code to expli

Re: [Paraview] adjusting vertical level setting via paraview python script

2015-07-30 Thread David E DeMarle
Regarding the adding attributes error message, it is likely that the ActiveSource is not an MPAS reader at that point in time. …GetActiveSource().__class__ should tell your what it is. Regarding the level setting - what is yourReader.ShowMultilayerView? The docs indicated a value of 1 makes Vertic

[Paraview] adjusting vertical level setting via paraview python script

2015-07-30 Thread Eatmon Jr., Arnold
I’m one of the DSS interns working under Jim Ahrens for the summer. I am using paraviews python script in the HPC and I’m having an issue adjusting an attribute of paraview.simple.netcdfmpasreader “VerticalLevel”. I want to adjust it from the default to one and attempted: paraview.simple.NetCDF

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] python script loading state file and replace the datafile

2015-05-03 Thread Fabian Braennstroem
Hello Utkarsh, ok, thank you! Best Regards Fabian On 05/01/2015 10:41 PM, Utkarsh Ayachit wrote: Fabian, The only way to this currently, is to use some of the XML processing libraries (either from ParaView) or modules provided by Python (https://docs.python.org/2/library/xml.html) to process

Re: [Paraview] python script loading state file and replace the datafile

2015-05-01 Thread Utkarsh Ayachit
Fabian, The only way to this currently, is to use some of the XML processing libraries (either from ParaView) or modules provided by Python (https://docs.python.org/2/library/xml.html) to process the XML to change the filename in the state file before loading it. Utkarsh On Tue, Apr 28, 2015 at

Re: [Paraview] python script loading state file and replace the datafile

2015-04-28 Thread Fabian Braennstroem
Hello, sorry, me again. Would be great if someone has an advice! Thanks in advance! Best Regards Fabian On 04/25/2015 08:48 PM, Fabian Braennstroem wrote: Hello, I am not able to find, how to change the ensight data file when loading a pvsm-state file with python. It would be great if you ha

[Paraview] python script loading state file and replace the datafile

2015-04-25 Thread Fabian Braennstroem
Hello, I am not able to find, how to change the ensight data file when loading a pvsm-state file with python. It would be great if you have an advice!? Thanks! Best Regards Fabian ___ Powered by www.kitware.com Visit other Kitware open-source projec

Re: [Paraview] Python script - change font color

2015-02-26 Thread Favre Jean
#Suppose you're displaying a variable called "scalar" scalarLUT = GetColorTransferFunction('scalar') view = GetRenderView() sBAR = GetScalarBar(scalarLUT, view) sBAR.LabelColor=[0.,0.,0.] Render() - Jean/CSCS ___ Powered by www.kitware

[Paraview] Python script - change font color

2015-02-26 Thread Jonas Asche
Hello all, is there a command to change the font color for a view? I have a white Background so i can print cutplanes but the font color of my color legend is white by default. If it is easy and i just have not found the command or if it is not possible, please give me a quick answer so i can thi

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

2015-02-26 Thread Thomas, Christian
Christian Dr. Christian Thomas Postdoctoral Research Associate Department of Mathematics Room 737, Huxley Building 180, Queen’s Gate Imperial College London SW7 2AZ c.tho...@imperial.ac.uk<mailto:c.tho...@imperial.ac.uk> Begin forwarded message: Subject: Paraview/Python script speed ext

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

2015-02-25 Thread Berk Geveci
h() and GetPoints… > Although I am able to get data with both methods, they are both very slow. > I was wondering if there was anything obvious in my paraview/python script > that was slowing the process or if anyone has a suggestion at how I may > speed things up. > (I realise thi

[Paraview] Paraview/Python script speed extracting data

2015-02-20 Thread Thomas, Christian
) and then reading the file. I have also tried servermanager.Fetch() and GetPoints… Although I am able to get data with both methods, they are both very slow. I was wondering if there was anything obvious in my paraview/python script that was slowing the process or if anyone has a suggestion at

[Paraview] Python script running out of memory

2014-10-09 Thread Ethan Hereth
Hey folks, I have created the attached script by using the Trace feature in Paraview (version 4.2.0-RC1-128-gc89b0ad) and then tweaked it to run on multiple .pvtu files. I don't doubt that there is a better way to do this but this is what I came up with. I run the script using pvbatch. The proble

[Paraview] python script to rotate geometry object from Extract CTH Parts filter (UNCLASSIFIED)

2014-07-10 Thread Su, Simon M CTR USARMY ARL (US)
Classification: UNCLASSIFIED Caveats: NONE Hello, After loading CTH data set and apply the Extract CTH parts filter, I will get some geometry/objects (depending on how many volume fraction you selected). When animated over time, the objects will move based on your modeling/simulation. What I wo

Re: [Paraview] python script to rotate a view (UNCLASSIFIED)

2014-07-09 Thread Su, Simon M CTR USARMY ARL (US)
, Simon M CTR USARMY ARL (US) Cc: paraview@paraview.org Subject: Re: [Paraview] python script to rotate a view (UNCLASSIFIED) Attached is a sample. For the most part it was obtained by using the "tracing" capabilities and adding a camera orbit animation. There's a bug in the tracin

Re: [Paraview] python script to rotate a view (UNCLASSIFIED)

2014-07-09 Thread Utkarsh Ayachit
Attached is a sample. For the most part it was obtained by using the "tracing" capabilities and adding a camera orbit animation. There's a bug in the tracing code that is missed the adding of KeyFrames to the CameraAnimationCue1 proxy as indicated in the script. BTW, we are working on revamping th

[Paraview] python script to rotate a view (UNCLASSIFIED)

2014-07-09 Thread Su, Simon M CTR USARMY ARL (US)
Classification: UNCLASSIFIED Caveats: NONE Hello, If I open up ParaView and Source->Box, I will get a box in the view. Is there an example python script that will allow me to rotate my view around the box? I will eventually add this to animation rendering of a more complicated dataset. Any help

Re: [Paraview] Python Script - access the raw data loaded from a dataset and creating new dataset (UNCLASSIFIED)

2014-05-12 Thread Su, Simon M CTR USARMY ARL (US)
Hi Burlen, thanks -simon From: Burlen Loring [blor...@lbl.gov] Sent: Friday, May 09, 2014 6:23 PM To: Su, Simon M CTR USARMY ARL (US); paraview@paraview.org Subject: Re: [Paraview] Python Script - access the raw data loaded from a dataset and creating new dataset

Re: [Paraview] Python Script - access the raw data loaded from a dataset and creating new dataset (UNCLASSIFIED)

2014-05-09 Thread Burlen Loring
Hi Simon, Fetching the data to the client is generally a bad idea. Instead you could use a python programmable filter which allows you to operate on the data in place on the server side. http://www.paraview.org/Wiki/Python_Programmable_Filter Burlen On 05/09/2014 10:44 AM, Su, Simon M CTR U

[Paraview] Python Script - access the raw data loaded from a dataset and creating new dataset (UNCLASSIFIED)

2014-05-09 Thread Su, Simon M CTR USARMY ARL (US)
Classification: UNCLASSIFIED Caveats: NONE Hello, Are there examples python script on accessing the raw data from the data loaded in paraview from python script? If I have the data loader selected on ParaView GUI and then I do the following from the Python Shell, >>> tt = GetActiveSource() >>>

[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] Python Script

2013-12-03 Thread Utkarsh Ayachit
Yes: import paraview import paraview.servermanager pm = paraview.servermanager.vtkProcessModule.GetProcessModule() type = pm.GetProcessTypeAsInt() for Python console and pvpython, the type will be pm.PROCESS_CLIENT for pvbatch it will be pm.PROCESS_BATCH To determine if it's Pytho

[Paraview] Python Script

2013-11-30 Thread Felipe Bordeu Weldt
Hi, It is possible to know if my script (in python) is running under ParaView (using run script from the python console) or pvpython of pvbatch. I do some post treatment of my data( set up of a pipeline + some calculations), and I want to use the same script for the visualization and the genera

Re: [Paraview] python script path

2013-09-09 Thread qe qe
54 -0400 > Subject: Re: [Paraview] python script path > From: utkarsh.ayac...@kitware.com > To: q...@hotmail.com > CC: paraview@paraview.org > > Check this out: > http://stackoverflow.com/questions/595305/python-path-of-script > > > > On Sat, Sep 7, 2013 at 10:09 PM, qe

Re: [Paraview] python script path

2013-09-08 Thread Utkarsh Ayachit
Check this out: http://stackoverflow.com/questions/595305/python-path-of-script On Sat, Sep 7, 2013 at 10:09 PM, qe qe wrote: > Is there a way to find the path of the a running python script? > I'm trying to get it from __file__ or sys.argv[0]. > But both of them give errors. > When I tried __f

[Paraview] python script path

2013-09-07 Thread qe qe
Is there a way to find the path of the a running python script? I'm trying to get it from __file__ or sys.argv[0]. But both of them give errors. When I tried __file__, it says __file__ is not defined. When i tried sys.argv[0], it says 'module' object has no attribute 'argv'. Thanks,

Re: [Paraview] Python script timing question

2013-04-09 Thread David E DeMarle
The paraview.benchmarks module should help in either case. What it does is grab all processes' vtktimerlogs, which contain in text form the time taken by every filter and rendering element in the pipeline, and saves/restores them to analyze at your leisure. That part at least should still be workin

Re: [Paraview] Python script timing question

2013-04-09 Thread Biddiscombe, John A.
rom: David E DeMarle [mailto:dave.dema...@kitware.com] Sent: 08 April 2013 16:44 To: Biddiscombe, John A. Cc: paraview@paraview.org Subject: Re: [Paraview] Python script timing question See the paraview.benchmark python module. http://paraview.org/Wiki/ParaView/Users_Guide/Batch_Processing serves as an

Re: [Paraview] Python script timing question

2013-04-08 Thread David E DeMarle
See the paraview.benchmark python module. http://paraview.org/Wiki/ParaView/Users_Guide/Batch_Processing serves as an example. The module is pretty old at this point and probably needs to be updated to work with modern ParaView. If there is significant interest I could do so . David E DeMarle Kit

[Paraview] Python script timing question

2013-04-08 Thread Biddiscombe, John A.
I'd like to run some benchmarks with P different parameters in paraview and Python scripting (which I almost never use) seems like a good option. Is it possible, to run an animation over N time steps and record the render time for each of the N frames and save that time to a CSV like file? I usu

Re: [Paraview] Python Script: "Rescale to Data Range"

2013-02-15 Thread Kisler
Hi Magician, hi Andy, thanks a lot for your responses. The code which Magician suggested worked perfectly. Thanks for the different possibilities you offered (indeed I needed GetPointData). Kind Regards Roman On 2013/02/11, at 06:15:42, Magician wrote: > Hi Roman, > > > I have an other soluti

Re: [Paraview] Python Script: "Rescale to Data Range"

2013-02-10 Thread Magician
Hi Roman, I have an other solution about this problem using Python. The code takes you the ranges of any values: > sm = servermanager.Fetch(your_source) > sm.GetCellData().GetArray(your_value).GetRange(0) ...and you can apply them to your Color Maps. You should apply your source's and value's

Re: [Paraview] Python Script: "Rescale to Data Range"

2013-02-08 Thread Andy Bauer
If you have the source code, you can look at the /Plugins/CoProcessingScriptGenerator/cp_export.py. It might be a bit confusing but the section you'll want to look at is below. I think you're problem is that you don't have any slice object to get the data information from. Andy = if %

[Paraview] Python Script: "Rescale to Data Range"

2013-02-08 Thread Kisler
Hi everyone, I write a python script (Paraview 3.14.1 64-bit) in which a loop loads files, makes slices etc., prints an image and deletes all variables within each iteration step. Therefore I need a python code which rescales the colorbar in each step. So far I found this code in another maili

[Paraview] Python Script for Marking Points

2012-04-09 Thread Mohammad Mirzadeh
Hi, I'm a complete newbie when it comes to python scripting and need a little bit of help. I'm trying to debug a parallel code using paraview. I have an unstructured grid that I save as a legacy vtk file. In it, I save the grid information and also the processor id of each point. What I want to do

[Paraview] using numpy/scipy methods in Paraview python script

2012-01-11 Thread FISSELL
Hi, I am trying to use numpy/scipy methods in Paraview python shell and programmable filter. I'm using paraview 3.12.0 on a Linux x86_64 platform. I'd like to use a lot more than the dataset_adapter module which is shown in examples in Paraview wiki. What is the best way to do this ? To get sc

Re: [Paraview] python script for plot-over-line filter

2011-05-03 Thread Jade Mackay
Thats really great. Thanks alot! On Tue, 2011-05-03 at 07:08 -0400, Utkarsh Ayachit wrote: > Jade, > > Here's the link to the Wiki about saving CSV files: > http://www.paraview.org/Wiki/ParaView/Python_Scripting#Exporting_CSV_Data > > In short, the following script should do it: > > >>> writer

Re: [Paraview] python script for plot-over-line filter

2011-05-03 Thread Utkarsh Ayachit
Jade, Here's the link to the Wiki about saving CSV files: http://www.paraview.org/Wiki/ParaView/Python_Scripting#Exporting_CSV_Data In short, the following script should do it: >>> writer = CreateWriter(".../foo.csv", source) >>> writer.FieldAssociation = "Points" # or "Cells" >>> writer.UpdateP

Re: [Paraview] python script for plot-over-line filter

2011-05-03 Thread Jade Mackay
Hi Utkarsh, Thanks for your help, trace is really great. It makes automation of the first two tasks trivial, however I am having trouble working out how to write the plot over line data to a csv file (the trace functionality doesn't generate anything for File>Save Data). Any suggestions about how

Re: [Paraview] python script for plot-over-line filter

2011-05-02 Thread Utkarsh Ayachit
Have you tried using the Python trace functionality in ParaView? It should help you generate such scripts using the actions you perform in the GUI. Utkarsh On Mon, May 2, 2011 at 10:01 AM, Jade Mackay wrote: > Hello, > > I frequently perform the procedure below, and would prefer to put it in > a

[Paraview] python script for plot-over-line filter

2011-05-02 Thread Jade Mackay
Hello, I frequently perform the procedure below, and would prefer to put it in a python script. Can anyone give me a some assistance in doing this? * read a vtu file * apply the plot-over-line filter, specifying the start and end points, and number of points * write the result to a csv file. Man

[Paraview] python script and axis

2011-01-28 Thread spam . me
Hello! I'm a newbie on python and VTK. I would like to add axis notation in my figure, but it fails, there are never represented. No error output occurs by running the script. Please could somebody help me to set up a correct script? Thanks in advance! Below you can find an abstract of my scr

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!?

Re: [Paraview] python script how to change Data Range

2011-01-19 Thread 小縣信也
n they don't make > any changes. > Change the RGBPoints explicitly as follows: > > 1_p_PVLookupTable.RGBPoints = [] > > Utkarsh > > 2011/1/18 小縣信也 : >> Hi paraviewers! >> >> I tried to change Data Range of color bar by paraview python script. >>

Re: [Paraview] python script how to change Data Range

2011-01-18 Thread Utkarsh Ayachit
gt; I tried to change Data Range of color bar by paraview python script. > But It didn't work. > Does someone know the reasson? > Is there another way to change Data Range in script? > > Kind Regards, > Shinya > &

[Paraview] python script how to change Data Range

2011-01-18 Thread 小縣信也
Hi paraviewers! I tried to change Data Range of color bar by paraview python script. But It didn't work. Does someone know the reasson? Is there another way to change Data Range in script? Kind Regards, Shinya -code which I

Re: [Paraview] Python script created by Trace does not work

2010-12-07 Thread Utkarsh Ayachit
What version of ParaView are you using? I couldn't reproduce the issue. Remember that threshold is a filter and looking at your script, it will get applied over the currently selected source. Did you do any other python command between execution of the script the second time, such as assigning a v

[Paraview] Python script created by Trace does not work

2010-12-07 Thread Oldrich Svec
Hi, I have created a very simple python script by Trace tool. I have just added a Treshold to the data. The script is as follows: try: paraview.simple except: from paraview.simple import * paraview.simple._DisableFirstRenderCameraReset() Threshold2 = Threshold() Threshold2.Scalars = ['POINTS',

Re: [Paraview] Python script change solid color

2010-11-17 Thread Hom Nath Gharti
0 10:31 AM > To: ParaView > Subject: [Paraview] Python script change solid color > > Dear all, > > Is there a simple way to change the solid color of e.g. surface with Python > script? > >

[Paraview] Python script change solid color

2010-11-17 Thread Hom Nath Gharti
Dear all, Is there a simple way to change the solid color of e.g. surface with Python script? Many thanks, Hom Nath ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please ke

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

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

2010-03-19 Thread Andy Bauer
No, you won't get the paraview gui with pvpython or vtkpython. On Fri, Mar 19, 2010 at 3:50 PM, Rick Angelini wrote: > Do I still get the GUI if I us pvpython or vtkpython? I'm looking to > jumpstart the Paraview GUI using a python script. > > Andy Bauer wrote: > >> You're probably looking for p

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

2010-03-19 Thread Andy Bauer
You're probably looking for pypython but vtkpython may also work. On Fri, Mar 19, 2010 at 3:42 PM, Rick Angelini wrote: > Is there a way to startup paraview and have it run a python script from the > command line? I know that I can load a state with the "--state" flag. > And, I can run a pyth

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

2010-03-19 Thread Rick Angelini
Do I still get the GUI if I us pvpython or vtkpython? I'm looking to jumpstart the Paraview GUI using a python script. Andy Bauer wrote: You're probably looking for pypython but vtkpython may also work. On Fri, Mar 19, 2010 at 3:42 PM, Rick Angelini mailto:rick.angel...@us.army.mil>> wrote

  1   2   >