[Paraview] Insert text source into view in a script

Madalena S. Malhadas nenasantos at hotmail.com
Thu Feb 26 12:47:39 EST 2015


Ok. Thank you very much.
I have a scrip that read a nc file and plot the sediments cloud from a clarifier . The script already save each image from each instant of my nc file. Now i want to include in each slide the data. So, i want that the scrip associate and write the correc data text in each slide. How can include these  feature in my script? Can you help me?
Kind regards
Madalena


From: kmorel at sandia.gov
To: nenasantos at hotmail.com; jeffrey.c.becker at nasa.gov; utkarsh.ayachit at kitware.com
CC: paraview at paraview.org
Subject: Re: [Paraview]  Insert text source into view in a script
Date: Thu, 26 Feb 2015 17:41:49 +0000










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>

Date: Thursday, February 26, 2015 at 10:34 AM

To: Jeff Becker <jeffrey.c.becker at nasa.gov>, Utkarsh Ayachit <utkarsh.ayachit at kitware.com>

Cc: ParaView <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/4fd51677/attachment.html>


More information about the ParaView mailing list