[Paraview] Insert text source into view in a script

2009-07-15 Thread M. Nawijn
Hello, I am a newbie in Paraview Python scripting, so I apologize upfront if this is a trivial question. I am processing a set of datafiles obtained from an optical measurement system. I so far succeeded in loading the data file, adding a color legend and storing the resulting view in a image fil

[Paraview] Insert text source into view in a script

2015-02-26 Thread Madalena S. Malhadas
How i can include a text source, for example a title (e.g., "my paraview script") into a view in a paraview scrip? Kind regardsMadalena ___ Powered by www.kitware.com Visit other Kitware open-source projects at http

Re: [Paraview] Insert text source into view in a script

2009-07-15 Thread Utkarsh Ayachit
"Text" is a data source similar to the reader. You need to "Show" it to add it to the active view. Just do: load = 100.0 # Don't know how to get this into the view text = Text() text.Text = "Load %6.3f" % load Show() Utkarsh On Wed, Jul 15, 2009 at 4:01 PM, M. Nawijn wrote: > Hello, > > I am a

Re: [Paraview] Insert text source into view in a script

2009-07-15 Thread M. Nawijn
Hello Utkarsh, Thank you for the fast response. I tried this already before posting my question to the mailing list, however, when I inserted the Show(), I get the following error: vtkFileSeriesReader : [ ...] vtkPainterPolyDataMapper : [ ...] vtkPainterPolyDataMapper : [

Re: [Paraview] Insert text source into view in a script

2009-07-15 Thread Utkarsh Ayachit
Does the following script work: #=== from paraview.simple import * Sphere() Show() Render() t = Text() t.Text = "Hello World" t.Show() Render() #=== Utkarsh On Wed, Jul 15, 2009 at 4:23 PM, M. Nawijn wrote: > Hello Utkarsh, > > Thank you for the fast resp

Re: [Paraview] Insert text source into view in a script

2009-07-15 Thread Utkarsh Ayachit
Oops correction, I had a typo in the script: #=== from paraview.simple import * Sphere() Show() Render() t = Text() t.Text = "Hello World" Show() Render() #=== On Wed, Jul 15, 2009 at 4:25 PM, Utkarsh Ayachit wrote: > Does the following script work: > #==

Re: [Paraview] Insert text source into view in a script

2009-07-16 Thread M. Nawijn
I just found out the offending line that gives me the problem. Given the following code: from paraview.simple import * lt = MakeBlueToRedLT(-1.0, 1.0) bar = servermanager.rendering.ScalarBarWidgetRepresentation() bar.LookupTable = lt bar.LabelColor = [0.0, 1.0, 0.0] bar.Title = r'W [mm]' ba

Re: [Paraview] Insert text source into view in a script

2009-07-16 Thread Utkarsh Ayachit
Marco, Looks like Pat ran into this issue recently as well. He's investigating it. Utkarsh On Thu, Jul 16, 2009 at 5:12 AM, M. Nawijn wrote: > I just found out the offending line that gives me the problem. > Given the following code: > > from paraview.simple import * > > lt = MakeBlueToRedLT(-1.

Re: [Paraview] Insert text source into view in a script

2009-07-16 Thread pat marion
I committed a fix to cvs.  The problem was that ScalarBarWidgetRepresentation proxy does not have an Input property, so a runtime error was thrown when servermanager.GetRepresentation() tried to read the property value. I added a try/except. By the way, scalar bars can be created now through the

Re: [Paraview] Insert text source into view in a script

2009-07-16 Thread M. Nawijn
Thanks a lot! I will recompile and try it. Marco On Thu, Jul 16, 2009 at 6:07 PM, pat marion wrote: > I committed a fix to cvs.  The problem was that > ScalarBarWidgetRepresentation proxy does not have an Input property, > so a runtime error was thrown when servermanager.GetRepresentation() > tri

Re: [Paraview] Insert text source into view in a script

2009-07-16 Thread M. Nawijn
Just for confirmation. I updated, recompiled and it works like a charm! Thanks again, Marco On Thu, Jul 16, 2009 at 8:31 PM, M. Nawijn wrote: > Thanks a lot! I will recompile and try it. > > Marco > > On Thu, Jul 16, 2009 at 6:07 PM, pat marion wrote: >> I committed a fix to cvs.  The problem wa

Re: [Paraview] Insert text source into view in a script

2015-02-26 Thread Moreland, Kenneth
mailto:paraview@paraview.org>> Subject: [EXTERNAL] [Paraview] Insert text source into view in a script How i can include a text source, for example a title (e.g., "my paraview script") into a view in a paraview scrip? Kind regards Madalena __

Re: [Paraview] Insert text source into view in a script

2015-02-26 Thread Madalena S. Malhadas
each slide. How can include these feature in my script? Can you help me? Kind regards Madalena From: kmo...@sandia.gov To: nenasan...@hotmail.com; jeffrey.c.bec...@nasa.gov; utkarsh.ayac...@kitware.com CC: paraview@paraview.org Subject: Re: [Paraview] Insert text source into view in a script Date