[Paraview] python

2012-07-25 Thread Yarrington, Cole D
My institution runs a common operating environment where numpy is not installed and will not be installed in the near future. A partition is allocated for software of this kind, and I have installed a version of python with numpy there. How can I get paraview to redirect all python and numpy c

[Paraview] python scripts

2008-09-24 Thread Patrick Shinpaugh
Hi, I've been writing some python scripts and running them through the paraview GUI. I start the scripts with from paraview import servermanager When I use pvpython or pvbatch to run the same scripts I receive an error: [project] pvpython paraview.py Traceback (most recent call last): Fil

[Paraview] python scripting

2008-10-10 Thread Tomislav Maric
Hello, I'm trying to visualise ConeSource() for practice on local host, when i run this code: from paraview import servermanager as sm sm.Connect() file = "my path to filename" data = sm.sources.LegacyVTKReader(FileNames=file) view = sm.CreateRenderView() rep = sm.CreateRepresentation() view.Sti

Re: [Paraview] python

2008-10-15 Thread David Fuentes
Hello, How do you connect to the paraview gui from an external python shell? when I type servermanager.Connect() my active connection is always builtin:5 The default connection when running the python shell from the paraview gui is always builtin::0 Also, Is there a way to search the l

Re: [Paraview] python

2008-10-16 Thread Berk Geveci
> How do you connect to the paraview gui from an external python shell? > when I type > > servermanager.Connect() > > my active connection is always > > > builtin:5 > > > The default connection when running the python shell > from the paraview gui is always builtin::0 You can't connect to the par

Re: [Paraview] python

2008-10-16 Thread David Fuentes
On Thu, 16 Oct 2008, Berk Geveci wrote: You can't connect to the paraview gui. You can only connect to instances of pvserver. Currently, those accept one connection only. We will be working on collaboration support that will enable both of the above. Berk, Can the above information be add

[Paraview] Python CreateRenderView

2008-12-04 Thread Jacques Papper
Hi, I am wondering why when I do the following in pvpython: from paraview import servermanager servermanager.Connect() view = servermanager.CreateRenderView() print servermanager.GetRenderView() This shows None - Shouldn't creating a render view set it as well ? Is there a way of setting it ?

Re: [Paraview] python

2008-12-05 Thread Berk Geveci
On Thu, Oct 16, 2008 at 9:31 AM, David Fuentes <[EMAIL PROTECTED]> wrote: > On Thu, 16 Oct 2008, Berk Geveci wrote: > >> >> You can't connect to the paraview gui. You can only connect to >> instances of pvserver. Currently, those accept one connection only. We >> will be working on collaboration su

[Paraview] ParaView python

2009-07-09 Thread Bam Ting
in a python shell when I do a from paraview import vtk using my paraview install, the resulting imported VTK object is not the same as when I do a import vtk from my vtk install, built from the same ParaView source tree. For example vtkDistributedStreamTracer is missing from the vtk object im

[Paraview] Python calculator

2009-12-01 Thread Fred Fred
I a trying to compute the velocity magnitude but there are some thing I did not well understand: First, what do the 3 arguments of VectorVariable mean? filter.VectorVariable = ['velocity','velocity', '3'] Second, what is wrong here: filter.Function = 'mag(velocity)'

[Paraview] Python->StreamTracer.MaximumPropagation

2009-12-02 Thread Fred Fred
This attribute is supposed to exist in the Python API but I get an error: AttributeError: Attribute MaximumPropagation does not exist _ Nouveau ! Tout Windows Live débarque dans votre télé

[Paraview] Python - StructuredGridReader

2010-04-04 Thread Christian Werner
Hi! I wonder how I can use a StructuredGridReader from within Python. I need to read .vti volume files, but Python says: >> help(StructuredGridReader) Traceback (most recent call last): File "", line 1, in NameError: name 'StructuredGridReader' is not defined I have read the Paraview

[Paraview] Python - Dialogs

2010-05-06 Thread Christian Werner
Hi! Is there a way to show the user some MessageBox? I'd like to get some user input to control a scripts execution. I am thinking about something like that: "Binary Measurement? Yes/No", or "Enter background value in the awesome text box below." Best regards, Christian

[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 "",

[Paraview] Python Reader

2010-10-18 Thread Patrick . Brockmann
Hi, How to create a Reader using a Python script ? I would like to study the simplest example to do this ? For now I can create a Source that uses a Python ProgrammableFilter but I want to consider it as a Reader since I have a filename as entry. Thanks Patrick Brockmann _

[Paraview] Python questions

2011-02-10 Thread James Perry
Hello, We are attempting to use Paraview to visualise some data from a simulation. At present we have a standalone Python script that converts the data into a legacy VTK file which Paraview can read. Ideally we'd like to integrate the script into Paraview as a programmable source so that the

[Paraview] python-paraview

2011-04-05 Thread David Fritzsche
is it possible to get an access to the paraview gui with a normal python interpreter. when i start a skript an i will show the result in the gui and not in the visualisation tollkit. thanks -- David Fritzsche Informations- und Medientechnik -

[Paraview] Python modules.

2011-04-14 Thread Jorge López
Dear All, Is it possible to add python modules to my path? I am working with Mac OS X. When I use the pvpthon command inside the Paraview folder and do "from paraview.simple import *" it works pretty good, but If I do from outside the Paraview folder does not work. If anyone knows how to do this,

[Paraview] Python + ParaView

2011-06-08 Thread Nico Schlömer
Hi, I'm just taking first steps with ParaView's Python interface and figured out so far that *snip* exodusReader = ExodusIIReader( FileName="solution.e" ) Show( exodusReader ) Render() *snap* would plot the mesh that is stored i

[Paraview] Python view

2015-04-14 Thread Ian Krukow
Hi all, I want to try out the python view for the first time, but I am not getting anywhere. I have created a python view and defined the functions setup_data and render. I tried the example script from the Kitware Blog (http://www.kitware.com/blog/home/post/588), and I do get the memory size

Re: [Paraview] python

2012-07-25 Thread Pat Marion
You can set the PYTHONHOME environment variable to indicate an alternate python install root. See the documentation here: http://docs.python.org/release/2.3.5/inst/search-path.html Specifically, the part that says... PYTHONHOME sets an alternate value for the prefix of the Python installation

Re: [Paraview] python

2012-07-25 Thread Berk Geveci
Can you provide a bit more detail? Are you compiling ParaView from source? If you are not, are you using the Kitware binaries? -berk On Wed, Jul 25, 2012 at 10:59 AM, Yarrington, Cole D wrote: > My institution runs a common operating environment where numpy is not > installed and will not be in

[Paraview] python scripting

2013-03-15 Thread Chukwudi Chukwudozie
Hi, I want help to be able to do the following two things using my mac OS X 10.7.5 but I have not been successful. 1. Run a paraview python script on terminal using pvpython. 2. Run the same script on terminal using python. For (1) above, I saved the trace for a particular operation and ran it

[Paraview] Python usage

2013-06-17 Thread Biddiscombe, John A.
I don't use python much so haven't really explored the paraview+python capabilities, however my tests the other day tell me that The python interface within paraview is very nice and you can create visualizations entirely from script with nice GUI interface thrown in. If you run a

[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

[Paraview] Python View

2014-05-18 Thread w.hunter
when I try to start a "Python View" Layout in Paraview 4.1.0 I get the following error: *ERROR: In /home/william/OpenFOAM/ThirdParty-2.3.x/ParaView-4.1.0/ParaViewCore/ClientServerCore/Rendering/vtkMatplotlibUtilities.cxx, line 302* *vtkMatplotlibUtilities (0x3aaab10): Could not call 'dpiCanvas.pri

[Paraview] Python 3

2017-03-10 Thread Rustem Khabetdinov
Hello, Is there any exact date when python 3 will be supported? It seems like it's been almost 3 months since there was last update: https://gitlab.kitware.com/paraview/paraview/issues/16818 Best Regards, Rustem ___ Powered by www.kitware.com Visit othe

[Paraview] Python Scripting

2017-05-27 Thread Richard Kalhoefer
Hey, I have a python script that opens a Legacy VTK file that contains two scalar arrays of the same length (real and imaginary part of a wave function) and then adjusts the camera settings, representation and color. My transfer functions seem to be ignored and I just get full opacity and black

[Paraview] Python Annotations

2017-11-07 Thread Quentin d'Avout
Hi All, I’d like to insert the freestream velocity stamp in a Python annotation on one of the animations I’m rendering (transient analysis – U varies throughout the run). I can’t find help on the syntax, specifically on how to insert a variable (U at a point) in the middle of a string of text,

Re: [Paraview] python scripts

2008-09-24 Thread Utkarsh Ayachit
That's weird. from paraview import servermanager should work from all the 3 locations client, pvbatch or pvpython. Can you try the following script and print your path in all the three applications? import sys print sys.path Utkarsh Patrick Shinpaugh wrote: Hi, I've been writing some python

Re: [Paraview] python scripts

2008-09-24 Thread Patrick Shinpaugh
I created the script you posted. The results of each are displayed below: pvpython ~/paraview-test-path.py ['/home/project', '/usr/local/ParaView-3.2.2/lib/paraview-3.2', '/usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/pyth

Re: [Paraview] python scripts

2008-09-24 Thread Utkarsh Ayachit
In /home/project is there a "paraview.py" or a directory named "paraview" ? If so, try moving or renaming that. Utkarsh Patrick Shinpaugh wrote: I created the script you posted. The results of each are displayed below: pvpython ~/paraview-test-path.py ['/home/project', '/usr/local/ParaView-3.

Re: [Paraview] python scripts

2008-09-24 Thread Patrick Shinpaugh
It was my fault. I had named the scripts by the vis software being used so paraview.py, visit.py, etc. Changing it to pv.py fixed it. Thanks very much for the help, Pat Utkarsh Ayachit wrote: In /home/project is there a "paraview.py" or a directory named "paraview" ? If so, try moving or rena

[Paraview] ParaView Python Threading

2008-10-02 Thread Robert Maynard
I have a basic threaded python script that I wanted to run in ParaView, but it seems that whenever you try to run a thread nothing happens in the python console. Trying to reset the console window crashes ParaView. This seems to be odd because the same script is able to work inside pvpython.

Re: [Paraview] python scripting

2008-10-14 Thread Berk Geveci
Are you entering this from the GUI python shell or from a stand-alone python session? Which platform are you on? -berk On Fri, Oct 10, 2008 at 7:38 PM, Tomislav Maric <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to visualise ConeSource() for practice on local host, when i > run this code: >

[Paraview] Python Programmable Filter

2008-11-13 Thread Jacques Papper
Hi Berk, I am trying out your suggestion of merging arrays : input0 = self.GetInputDataObject(0,0) input1 = self.GetInputDataObject(0,1) output = self.GetOutputDataObject(0) output.GetPointData().AddArray(input0.GetPointData().GetArray("pressure1")) output.GetPointData().AddArray(input1.GetPointD

Re: [Paraview] Python CreateRenderView

2008-12-04 Thread Utkarsh Ayachit
GetRenderView() locates a registered render view and returns that. If no view is registered GetRenderView() will return NULL. To register a view use: servermanager.Register(view) You example becomes: from paraview import servermanager servermanager.Connect() view = servermanager.CreateRender

[Paraview] python function documentation?

2009-04-11 Thread David Doria
I am doing something like this: -- view=servermanager.CreateRenderView() #render something view.WriteImage("top.png", "vtkPNGWriter") -- I can find help with help(servermanager) or help(servermanager.CreateRenderView) but not with help(servermanager.CreateRenderView.Writ

[Paraview] python programmable filter

2009-05-09 Thread Nehme Bilal
Hi, I am using vtkKdTree in a python programmable filter. I would like to use: void vtkKdTree::FindPointsWithinRadius(double R, const double x[3], vtkIdList* result) but I don't know how to write it in python. I tried the following : coord = (687856,539156,269) result = vtk.vtkIdList() kd

[Paraview] Python Calculator Filter

2009-06-23 Thread Adriano Gagliardi
I have been trying to write a simple Python script that uses the Calculator filter to take three scalars and produce a vector using the ParaView3.6 Python wrapping. This is trivial through the GUI Calculator Filter, but I am having problems adding more than one scalar to the calculator object in my

[Paraview] Python parser issues

2009-06-25 Thread Paul Edwards
Hi, I have a filter than creates secondary flow variables for post processing. They have names such as "absolute temperature". There is a problem with the Python parser where it will take the "abs" from absolute and interpret it as the math function. Is there a way around this? Here are steps t

Re: [Paraview] ParaView python

2009-07-09 Thread pat marion
Hi, This is because paraview does not import all the vtk libraries, I suppose to save time, but maybe there are other reasons. Try this from paraview: print paraview.vtk.__file__ And you'll get /pat/to/Utilities/VTKPythonWrapping/paraview/vtk/__init__.pyc Now open this file in an editor (repla

Re: [Paraview] ParaView python

2009-07-09 Thread Bam Ting
Very cool! Thanks Pat On Thu, Jul 9, 2009 at 12:19 PM, pat marion wrote: > Hi, > > This is because paraview does not import all the vtk libraries, I > suppose to save time, but maybe there are other reasons. > > Try this from paraview: > > print paraview.vtk.__file__ > > And you'll get > /pat/t

[Paraview] Python Test Recording

2009-08-21 Thread Jonathan Murray
Hi all, I am new to ParaView (and this mailing list) and I'm interested in the ability to automate Paraview operations with python scripts. I noticed in the online documentation that the "Record Test" function should allow one to produce XML or python scripts for a recorded set of actions performed

[Paraview] python + animation + widget

2009-09-02 Thread Stephane PLOIX
Hi, I would like to switch off the visibility of a widget while creating an animation with python. force instance, if I use the script below : sph = Sphere() transform = Transform(sph) Show(transform) Render() the box widget is visible, how to turn the visibility off from python? My pb is tha

[Paraview] Python configuration issue

2009-11-21 Thread Fred Fred
I am not a python specialist hence I can't understand where is the problem, since all environment variables seem to be ok: Macintosh-2:Python$ python myscript.py Traceback (most recent call last): File "myscript.py", line 1, in from paraview.simple import * File "/usr/local/ParaView3/U

[Paraview] Python classes doc?

2009-11-23 Thread Fred Fred
This line: reader = XMLImageDataReader(FileName=args[0]) raises an error: ERROR: In /usr/local/ParaView3/VTK/IO/vtkXMLParser.cxx, line 484 vtkXMLDataParser (0x1e5b6f40): Error parsing XML in stream at line 1, column 1, byte index 1: not well-formed (invalid token) while the file is a st

[Paraview] Python VTK readers

2009-11-30 Thread Fred Fred
With the Python API, is there a reader for: - reading legacy VTK files? I tried LegacyVTKFileReader but got "NameError: name 'LegacyVTKFileReader' is not defined" - reading any VTK file? I mean a general VTK file reader able to call the appropriate reader, such as vtkDataSetReader in Tcl -

Re: [Paraview] Python calculator

2009-12-01 Thread Peter Brady
The way to specify a vector variable is not entirely intuitive: filter.VectorVariable = ['velocity', 'velocity', '0', '1', '2'] Hope that helps, Peter. On Tue, Dec 1, 2009 at 9:51 AM, Fred Fred wrote: > I a trying to compute the velocity magnitude but there are some thing I > did not well un

Re: [Paraview] Python calculator

2009-12-01 Thread Fred Fred
is: filter.VectorVariable = ['velocity', options.name, '0', '1', '2'] Date: Tue, 1 Dec 2009 10:53:58 -0700 Subject: Re: [Paraview] Python calculator From: petertbr...@gmail.com To: stan1...@hotmail.fr CC: paraview@paraview.org The way to specify a vector var

Re: [Paraview] Python->StreamTracer.MaximumPropagation

2009-12-02 Thread Berk Geveci
That property is called MaximumStreamlineLength to be consistent with the GUI. It sounds like our online documentation is out of date. I suggest doing: s = StreamTracer() help(s) -berk On Wed, Dec 2, 2009 at 7:03 AM, Fred Fred wrote: > This attribute is supposed to exist in the Python API but I

Re: [Paraview] Python - StructuredGridReader

2010-04-04 Thread Christian Werner
I used the Trace functionality in the Python Shell to figure out that I need a XMLImageDataReader for that task. Sorry for the inconvenience. Christian Werner wrote: Hi! I wonder how I can use a StructuredGridReader from within Python. I need to read .vti volume files, but Python says:

[Paraview] Python Programmable Filter

2010-04-19 Thread Favre Jean
Hello Can one write a Python Programmable Filter with multiple outputs? I tried the obvious self.SetNumberOfOutputPorts(2), which complained, and in any case, I wonder how it would interact with the GUI option which defines the output Data Set Type. Since there is a single option, I guess I wou

Re: [Paraview] Python - Dialogs

2010-05-06 Thread pat marion
In paraview 3.8 you can use this in the python console: var = raw_input("Enter something: ") print "you entered ", var It's not as pretty as a QMessageBox, but it works. In fact, it would be trivial to change the c++ code to make a QMessageBox appear instead of a QLineEdit appear. Pat On Thu,

Re: [Paraview] Python - Dialogs

2010-05-07 Thread Christian Werner
"In fact, it would be trivial to change the c++ code to make a QMessageBox appear instead of a QLineEdit." Are you saying that I should submit a feature request for that? A QMessageBox would definitely be more helpful than the QLineEdit. Best regards, Christian pat marion schrieb: In para

Re: [Paraview] Python - Dialogs

2010-05-07 Thread pat marion
I take it back. The string given as an argument to raw_input will be displayed as regular stdout in the python console, not in the QMessageBox. It wouldn't be straight forward to capture the string for display in the message box. But feel free to make a feature request if you want. Pat On Fri,

[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 = OpenDataFile

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

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

[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 s

Re: [Paraview] Python Reader

2010-10-18 Thread Adriano Gagliardi
October 2010 16:49 To: paraview@paraview.org Subject: [Paraview] Python Reader Hi, How to create a Reader using a Python script ? I would like to study the simplest example to do this ? For now I can create a Source that uses a Python ProgrammableFilter but I want to consider it as a Reader

Re: [Paraview] Python Reader

2010-10-18 Thread Brockmann Patrick
I'm assuming you want something more refined than: Programmable Filter: filename = 'myfilename' execfile(my_python_code.py) --- where filename is used within my_python_code as a variable? Yes, especially if you want to design a plugin where filename is an entry choosen by a user. I am loo

Re: [Paraview] Python Reader

2010-10-18 Thread Adriano Gagliardi
riginal Message- From: Brockmann Patrick [mailto:patrick.brockm...@cea.fr] Sent: 18 October 2010 18:04 To: paraview@paraview.org Cc: agaglia...@ara.co.uk Subject: Re: [Paraview] Python Reader > I'm assuming you want something more refined than: > > Programmable Filter: > >

Re: [Paraview] Python Reader

2010-10-19 Thread Paul Edwards
; Computational Aerodynamics > Aircraft Research Association Ltd. > Manton Lane > Bedford > > Tel: 01234 32 4644 > E-mail: agaglia...@ara.co.uk > Url: www.ara.co.uk > -Original Message- > From: Brockmann Patrick [mailto:patrick.brockm...@cea.fr] > Sent: 18 Octo

Re: [Paraview] Python Reader

2010-10-19 Thread Brockmann Patrick
Paul Edwards a écrit : Hi Patrick, Have you tried adding a StringVectorProperty to your XML for a filename (with ) and having a GUI XML file for adding a reader? I think someone suggested you look at the helix source xml (http://paraview.org/gitweb?p=ParaView.git;a=blob;f=Examples/Plugins/H

Re: [Paraview] Python Reader

2010-10-19 Thread Paul Edwards
You will need a separate xml file for the GUI plugin to tell paraview about the new format. Look at pqReader.xml in "Examples/Plugins/Reader". Regards, Paul On 19 October 2010 14:26, Brockmann Patrick wrote: > Paul Edwards a écrit : > > Hi Patrick, >> >> Have you tried adding a StringVectorPr

Re: [Paraview] Python Reader

2010-10-19 Thread Aurélien Marsan
In doing so, it seems that the reader must have a "SetFileName" function. How do you handle this with python ? Or can you avoid this ? I do not think the integration of a python script in the GUI can be as perfect as that of a reader writen in c++. 2010/10/19 Paul Edwards > You will need a sepa

Re: [Paraview] Python Reader

2010-10-19 Thread Paul Edwards
Are you trying to do this without compiling anything? I'm not even sure you can load in a GUI plugin via XML - maybe someone else can confirm here? Sorry I can't be more help, Paul On 19 October 2010 16:15, Brockmann Patrick wrote: > Paul Edwards a écrit : > > You will need a separate xml file

Re: [Paraview] Python questions

2011-02-10 Thread Favre Jean
Hello James I don't believe this is a bug. I have used the ProgrammableSource and was able to render a grid without any difficulty. What is missing in your procedure is most likely setting the WholeExtent. try loading this script and you'll get a rendered image paraview --script=state.py

Re: [Paraview] Python questions

2011-02-10 Thread James Perry
Hi Jean, Thanks a lot - that solves my first problem! Regards, James On 10/02/2011 12:30, Favre Jean wrote: Hello James I don't believe this is a bug. I have used the ProgrammableSource and was able to render a grid without any difficulty. What is missing in your procedure is most likely

[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] Python modules.

2011-04-14 Thread David E DeMarle
Yes. See the getting started section of http://paraview.org/Wiki/ParaView/Python_Scripting for some examples. David E DeMarle Kitware, Inc. R&D Engineer 28 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-371-3971 x109 On Thu, Apr 14, 2011 at 3:32 PM, Jorge López wrote: > Dear All, > Is

Re: [Paraview] Python modules.

2011-04-14 Thread Cook, Rich
I think you can modify PYTHONPATH, or certainly you can append to sys.path import sys sys.path.append("/home/me/mypy") On Apr 14, 2011, at 12:32 PM, Jorge López wrote: Dear All, Is it possible to add python modules to my path? I am working with Mac OS X. When I use the pvpthon command inside th

Re: [Paraview] Python modules.

2011-04-18 Thread DParker
pvpython path automatically so you won't have to use sys.path.append everytime you launch Paraview. David Parker Chromalloy - TDAG From: Jorge López To: paraview@paraview.org Date: 04/14/2011 03:36 PM Subject: [Paraview] Python modules. Sent by:paraview-boun...@

Re: [Paraview] Python + ParaView

2011-06-08 Thread Utkarsh Ayachit
The following wiki page talks about how to color using arrays: http://www.paraview.org/Wiki/ParaView/Python_Scripting#Representations_and_Views The easiest way to figure out Python code equivalents is to use the Trace functionality to generate python trace files for actions performed in the GUI (a

Re: [Paraview] Python + ParaView

2011-06-08 Thread Nico Schlömer
Thanks for the hints. The Trace function in indeed quite useful in that it get you where you want to be. When looking at the code there's still a lot of me to understand though, the GetLookupTableForArray() call seems to be crucial for example. * The VectorMode='Magnitude' parameter seems to be

Re: [Paraview] Python + ParaView

2011-06-08 Thread Utkarsh Ayachit
Magnitude corresponds to the magnitude of a vector, so yes, it takes the square root. If you want to do arbitrary arithmetic, you will have to first generate the array using something like a "Calculator" filter and then color using the generated array. Yes, RGBPoints defines the mapping between s

Re: [Paraview] Python + ParaView

2011-06-08 Thread Nico Schlömer
> If you want to do arbitrary arithmetic, you will have to first > generate the array using something like a "Calculator" filter and then > color using the generated array. Oh, if I remember correctly I did look into this before, and found the calculator filter too limited on the arithmetics that

Re: [Paraview] Python + ParaView

2011-06-08 Thread David E DeMarle
The python programmable filter (and the easier to use python programmable calculator variant of that) will get you beyond all of those limitations. David E DeMarle Kitware, Inc. R&D Engineer 28 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-371-3971 x109 On Wed, Jun 8, 2011 at 12:11 PM,

Re: [Paraview] Python + ParaView

2011-06-08 Thread David E DeMarle
Also the standard calculator does have conditionals, there just isn't a button corresponding to them on the UI. See the manual for the syntax. David E DeMarle Kitware, Inc. R&D Engineer 28 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-371-3971 x109 On Wed, Jun 8, 2011 at 12:16 PM, David

Re: [Paraview] Python + ParaView

2011-06-16 Thread Nico Schlömer
> See the manual for the syntax. Where can I find that? The ParaView User's Guide isn't too verbose on any of that. The Wiki, on the other hand, seems to contain a fair amount of examples. Specifically, I've looked at to see about programm

Re: [Paraview] Python + ParaView

2011-06-16 Thread Nico Schlömer
Also, when *snip* >>> >>> import paraview.simple paraview version 3.10.1, Date: 2011-01-28 >>> calc1 = paraview.simple.servermanager.filters.Calculator() >>> help( calc1 ) >>> *snip* I don't see ho

Re: [Paraview] Python + ParaView

2011-06-16 Thread Nico Schlömer
Progress! Thanks to the incredibly helpful Trance functionality, I understand now that something like === *snip* === calc1 = pv.Calculator( ResultArrayName = '|psi|^2' ) calc1.AttributeMode = 'point_data' calc1.Function = 'psi__X^2 + psi__Y^2' [...]

Re: [Paraview] Python + ParaView

2011-06-16 Thread Nico Schlömer
Okay, for everyone interested: I think I got it to work, somehow, with the help of . The atan2() function can be imitated in ParaView's calculator filter by == *snip* == calc2 = pv.Calculator( ResultArrayName

Re: [Paraview] Python + ParaView

2011-06-16 Thread Nico Schlömer
A small correction to the previous script: Two pi2's should be replaced by just pi. The correct Function is == *snip* == calc2.Function = 'if( psi__X>0, atan(psi__Y/psi__X),' + \ 'if( psi__X<0,' + \ 'if ( psi__Y<0, -

[Paraview] python paraviewweb examples

2011-09-16 Thread Chris Kees
Hi, Is it possible to write the javascript representation of a VTK object from python? Thanks, Chris ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-

[Paraview] Paraview Python scripting

2011-11-01 Thread David Dupuis
ate” in Paraview. Is there a way to load a python state file? Here is what I tried to do so, but didn’t succeeded. 1- I followed the procedure for Paraview/Python scripting, and added PYTHONPATH in .bashrc: export PYTHONPATH="/home/david/ParaView-3.12.0-RC2-Linux-x86_64/lib/paraview-3

[Paraview] Python calculator question

2011-11-04 Thread Tim Gallagher
Hi, We're trying to compare two datasets using the Python calculator and the instructions on: http://paraview.org/Wiki/index.php?title=ParaView/Users_Guide/Python_Calculator#Comparing_Multiple_Datasets However, when we choose our datasets and apply the filter, it says it doesn't support vtkMul

Re: [Paraview] Python view

2015-04-14 Thread Cory Quammen
Hi Ian, I'm glad to hear you are interested in the Python View. I want to try out the python view for the first time, but I am not getting > anywhere. I have created a python view and defined the functions setup_data > and render. I tried the example script from the Kitware Blog ( > http://www.ki

Re: [Paraview] Python view

2015-04-14 Thread Adam Lyon
Hi Cory - I wanted to try this -- I loaded the state file and the data file (thanks for the link). But when the python view tries to render, I get, Error: Cannot import matplotlib.backends.backend_agg.FigureCanvasAgg and nothing appears. I'm running Paraview 4.3.1 64-bit on my Mac with Yosemite.

Re: [Paraview] Python view

2015-04-14 Thread Utkarsh Ayachit
Can you try resizing the window or something like that? I wonder if its an update issue. On Tue, Apr 14, 2015 at 11:49 AM, Adam Lyon wrote: > Hi Cory - I wanted to try this -- I loaded the state file and the data file > (thanks for the link). But when the python view tries to render, I get, > > E

Re: [Paraview] Python view

2015-04-14 Thread Cory Quammen
Hi Adam, I am trying to reproduce this with ParaView 4.3.1 64-bit on a Mac with Yosemite 10.10.2, but haven't been able to. This is the latest Mac binary available for download on paraview.org. The matplotlib pot shows up as in the blog post. Is your ParaView binary from paraview.org? Thanks, Cor

Re: [Paraview] Python view

2015-04-14 Thread Ian Krukow
Hi Cory, thanks a lot! I was missing the import statements. Now it works fine. And I will remember the big Apply button :-). Ian Am 14.04.2015 um 15:09 schrieb Cory Quammen: Hi Ian, I'm glad to hear you are interested in the Python View. I want to try out the python view for the first

Re: [Paraview] Python view

2015-04-14 Thread Ian Krukow
One more question: How can I access the point coordinates in the python view? Ian Am 14.04.2015 um 22:01 schrieb Ian Krukow: Hi Cory, thanks a lot! I was missing the import statements. Now it works fine. And I will remember the big Apply button :-). Ian Am 14.04.2015 um 15:09 schrieb Cor

Re: [Paraview] Python view

2015-04-14 Thread Adam Lyon
Hi Cory and Utkarsh - So I never see a plot - just a black window. The error message I sent earlier repeats every time I move my mouse over the python view window. I'm using Paraview 4.3.1 downloaded from paraview.org. Paraview's "about" box is below. Do you have a simple matplotlib plot I can tr

Re: [Paraview] Python view

2015-04-14 Thread Cory Quammen
Hi Adam, I am running the exact same version of ParaView (my About box has the same contents as yours), so this is a little bit puzzling. Could you try two things: 1). Run ParaView, create a Python View, then enter this script: import matplotlib print matplotlib.__file__ import matplotlib.ba

Re: [Paraview] Python view

2015-04-14 Thread Adam Lyon
Hi Cory - I tried your little script and got an interesting response... /Applications/paraview4.3.1.app/Contents/Python/matplotlib/__init__.pyc /Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/__init__.pyc Traceback (most recent call last): File "", line 7, in File "/Applic

Re: [Paraview] Python view

2015-04-15 Thread Cory Quammen
Thanks for the report, Adam. This is helpful. We'll look at getting it fixed. Cory On Tue, Apr 14, 2015 at 8:19 PM, Adam Lyon wrote: > Hi Cory - I tried your little script and got an interesting response... > > /Applications/paraview4.3.1.app/Contents/Python/matplotlib/__init__.pyc > > /Applica

Re: [Paraview] Python view

2015-04-15 Thread Adam Lyon
Great! Glad this is useful! -- A *--* *Adam L. Lyon* *Scientist; Associate Division Head for Systems for Scientific Applications* Scientific Computing Division & Muon g-2 Experiment Fermi National Accelerator Laboratory 630 840 5522 office www.fnal.gov l...@fnal.gov Connect with us! Newslet

Re: [Paraview] Python view

2015-04-17 Thread Cory Quammen
Ian, You should be able to access the point data in your "render" function with the following dataObject = view.GetVisibleDataObjectForRendering(i) dataObject.GetPoints() where i is the i-th visible object. This returns a vtkPoints object. I'm not 100% sure if this works in client/server mode,

  1   2   3   4   5   6   7   >