Re: [Paraview] Printing from a macro

2011-10-06 Thread Greg Schussman
work! Le 05/10/2011 00:46, Greg Schussman claviota: Would you have any idea how to set the focus from python? Hm, not really. I'll see if I can figure it out, I'll keep you informed. Not in the coming days, I'm afraid, I'm just about to leave for a mission in Africa. À+ Pierre

Re: [Paraview] Changing Chart Series Visibilities from Python

2011-10-06 Thread Greg Schussman
On 10/06/2011 07:33 AM, pat marion wrote: series_names = [name for name in d.GetProperty(SeriesNamesInfo)] Hi, Pat. Thanks for the helpful pointers. After setting everything up in ParaView (3.10.1, 64-bit), I'm not getting results. Here is what I did from the ParaView Python Shell: p =

Re: [Paraview] Printing from a macro

2011-10-06 Thread Greg Schussman
On 10/06/2011 01:28 AM, Pierre Chevalier Géologue wrote: Hello, Sorry for the delay: too much work! Le 05/10/2011 00:46, Greg Schussman claviota: Would you have any idea how to set the focus from python? Hm, not really. I'll see if I can figure it out

Re: [Paraview] Changing Chart Series Visibilities from Python

2011-10-06 Thread Greg Schussman
at 2:03 PM, Greg Schussman schuss...@slac.stanford.edu mailto:schuss...@slac.stanford.edu wrote: On 10/06/2011 07:33 AM, pat marion wrote: series_names = [name for name in d.GetProperty(SeriesNamesInfo)] Hi, Pat. Thanks for the helpful pointers. After setting everything up

Re: [Paraview] Changing Chart Series Visibilities from Python

2011-10-06 Thread Greg Schussman
, Oct 6, 2011 at 2:03 PM, Greg Schussman schuss...@slac.stanford.edu mailto:schuss...@slac.stanford.edu wrote: On 10/06/2011 07:33 AM, pat marion wrote: series_names = [name for name in d.GetProperty(SeriesNamesInfo)] Hi, Pat. Thanks for the helpful pointers. After setting

Re: [Paraview] Changing Chart Series Visibilities from Python

2011-10-06 Thread Greg Schussman
(SeriesNamesInfo) series_names = [p.GetElement(i) for i in xrange(p.GetNumberOfElements())] Pat On Thu, Oct 6, 2011 at 2:34 PM, Greg Schussman schuss...@slac.stanford.edu mailto:schuss...@slac.stanford.edu wrote: Hi, Pat. I tried plotting directly from the CSVReader, and then it all

Re: [Paraview] Changing Chart Series Visibilities from Python

2011-10-06 Thread Greg Schussman
I get back series_names: [] Thanks for any suggestions. Greg On 10/06/2011 12:46 PM, Greg Schussman wrote: Hi, Pat. On further checking, there's still some sort of problem. When I use your example below, it works in ParaView's Python Shell

[Paraview] Changing Chart Series Visibilities from Python

2011-10-05 Thread Greg Schussman
Hi. I have a ParaView macro which sets up a CSVReader, and a PlotData of that. The variable names and legend names and series colors are all filled in automatically by ParaView. What I would like to do is, from the python macro, iterate through all series in a chart and make specific ones

Re: [Paraview] Printing from a macro

2011-10-04 Thread Greg Schussman
On 10/03/2011 02:18 AM, Pierre Chevalier Géologue wrote: Le 03/10/2011 09:58, Greg Schussman claviota: Or, even if it's not possible to control which window (Output Window vs. Python Shell) displays the output, is there at least a way to predict which one will do the displaying

Re: [Paraview] Printing from a macro

2011-10-03 Thread Greg Schussman
Or, even if it's not possible to control which window (Output Window vs. Python Shell) displays the output, is there at least a way to predict which one will do the displaying? Thanks. Greg On 9/28/2011 12:41 PM, Greg Schussman wrote: Hi, Everyone. When I print from a python macro within

[Paraview] Printing from a macro

2011-09-28 Thread Greg Schussman
Hi, Everyone. When I print from a python macro within ParaView, sometimes the output of that print goes to ParaView's Output Window, and sometimes it goes to ParaView's Python Shell. Is there a way I can control which of those two windows will receive the output of a print? Thanks. Greg

Re: [Paraview] How does one rescale CSVReader data via pvpython?

2011-09-16 Thread Greg Schussman
Hi, Jean. That worked perfectly. Thank you very much. Greg On 09/16/2011 08:36 AM, Favre Jean wrote: Greg, sorry if I did not explain fully. After reading your data, it is the active source. if you instantiate a ProgrammableFilter (PF), it takes wake_out as its input. But you can also set

Re: [Paraview] How does one rescale CSVReader data via pvpython?

2011-09-15 Thread Greg Schussman
Hi, Jean. Thank you for helping. On your suggestion, I tried removing the Fetch, but then I was getting empty objects. From googling around a bit, I realized that I needed to call wake_out.UpdatePipeline() before moving on. Because this is pretty ad-hoc, I'd prefer to avoid creating a

[Paraview] How does one rescale CSVReader data via pvpython?

2011-09-14 Thread Greg Schussman
Hi. I've got a simple script to read a csv file and open a new plot window. One of the columns in the data file needs to be rescaled. I've had poor luck googling around and looking at examples. Does anyone have any suggestions? Thanks in advance for any help. Greg Here is the working

Re: [Paraview] Saving Images

2011-02-28 Thread Greg Schussman
like an easy fix. I'll take a look. Utkarsh On Wed, Feb 9, 2011 at 4:22 PM, Greg Schussman schuss...@slac.stanford.edu wrote: Hi. I've had some surprising results when saving images out of ParaView. I haven't had time to thoroughly examine results by looking at difference images until recently

[Paraview] Saving Images

2011-02-09 Thread Greg Schussman
Hi. I've had some surprising results when saving images out of ParaView. I haven't had time to thoroughly examine results by looking at difference images until recently. Here's what I found. When I carefully size the ParaView 3D view to, say 1280x960, and then File-Save Screenshot, the

[Paraview] GetAnimationScene() in pvbatch?

2010-07-01 Thread Greg Schussman
Hello. I'm building a batch script run by pvbatch. So far, all is well; I can load multiple meshes, use the calculator, do some clipping, etc. But when I do the following (copy-pasted from a paraview trace from the gui version of ParaView): AnimationScene1 = GetAnimationScene() I