[Paraview] Insert text source into view in a script

Moreland, Kenneth kmorel at sandia.gov
Thu Feb 26 12:41:49 EST 2015


Try using the ParaView tracing feature (Tools -> Start Trace, Stop Trace) to learn script commands that mimic things you do in the GUI. Using ParaView 4.3.1, I started script tracing, created a text source, and stopped the tracing. I got the following commands:


# create a new 'Text'

text1 = Text()


# Properties modified on text1

text1.Text = 'my paraview script'


# get active view

renderView1 = GetActiveViewOrCreate('RenderView')

# uncomment following to set a specific view size

# renderView1.ViewSize = [856, 589]


# show data in view

text1Display = Show(text1, renderView1)


-Ken

From: "Madalena S. Malhadas" <nenasantos at hotmail.com<mailto:nenasantos at hotmail.com>>
Date: Thursday, February 26, 2015 at 10:34 AM
To: Jeff Becker <jeffrey.c.becker at nasa.gov<mailto:jeffrey.c.becker at nasa.gov>>, Utkarsh Ayachit <utkarsh.ayachit at kitware.com<mailto:utkarsh.ayachit at kitware.com>>
Cc: ParaView <paraview at paraview.org<mailto:paraview at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150226/cdd01bb4/attachment.html>


More information about the ParaView mailing list