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
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
"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
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 : [
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
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:
> #==
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
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.
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
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
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
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
__
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
13 matches
Mail list logo