[prev in list] [next in list] [prev in thread] [next in thread]
List: paraview
Subject: Re: [Paraview] Creating Append Attributes filter using python
From: tpk <stream.gazer () yahoo ! co ! uk>
Date: 2009-03-26 10:31:08
Message-ID: 258904.4418.qm () web25907 ! mail ! ukl ! yahoo ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Thanks for the prompt answer, Eric.
That seems to work nicely.
tpk
From: Eric E. Monson <emonson@cs.duke.edu>
Subject: Re: [Paraview] Creating Append Attributes filter using python
To: "tpk" <stream.gazer@yahoo.co.uk>
Cc: paraview@paraview.org
Date: Wednesday, 25 March, 2009, 5:41 PM
Hello,
It looks like you can just give the AppendAttributes filter a list of inputs:
==================================from paraview import servermanager \
servermanager.Connect() sph1 = servermanager.sources.SphereSource() elev = \
servermanager.filters.ElevationFilter(Input=sph1) sph2 = \
servermanager.sources.SphereSource() ids = \
servermanager.filters.GenerateIdScalars(Input=sph2) app = \
servermanager.filters.AppendAttributes()app.Input = [elev,ids] view = \
servermanager.CreateRenderView() rep = servermanager.CreateRepresentation(app, view) \
rep.ColorAttributeType = 0 # point data rep.ColorArrayName = 'Ids' # color by Ids \
view.ResetCamera()view.StillRender() \
==================================
-Eric
------------------------------------------------------Eric E MonsonDuke Visualization \
Technology Group
On Mar 25, 2009, at 8:19 AM, tpk wrote:
Hi all,
Could anyone advise me how to create an Append Attributes filter using pvpython?
Paraview documentation refers to Group Parts filter which, I believe, is obsolete in \
version 3.4.0.
My purpose is to merge multiple scalar/vector data sets sharing the same geometry. \
The data sets are loaded using PVDReader.
Thanks,
tpk
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at: \
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview
[Attachment #5 (text/html)]
<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: \
inherit;"><br>Thanks for the prompt answer, Eric.<br>That seems to work \
nicely.<br><br>tpk<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); \
margin-left: 5px; padding-left: 5px;"><br>From: Eric E. Monson \
<emonson@cs.duke.edu><br>Subject: Re: [Paraview] Creating Append Attributes \
filter using python<br>To: "tpk" <stream.gazer@yahoo.co.uk><br>Cc: \
paraview@paraview.org<br>Date: Wednesday, 25 March, 2009, 5:41 PM<br><br><div \
id="yiv919296965">Hello,<div><br></div><div>It looks like you can just give the \
AppendAttributes filter a list of \
inputs:</div><div><br></div><div><div>==================================</div><div></div><div>from \
paraview import servermanager </div><div>servermanager.Connect()</div><div><br></div><div>sph1 \
= servermanager.sources.SphereSource() </div><div>elev = \
servermanager.filters.ElevationFilter(Input=sph1) </div><div><br></div><div>sph2 \
= servermanager.sources.SphereSource() </div><div>ids = \
servermanager.filters.GenerateIdScalars(Input=sph2)</div><div><br></div><div>app = \
servermanager.filters.AppendAttributes()</div><div>app.Input = \
[elev,ids]</div><div><br></div><div>view = \
servermanager.CreateRenderView() </div><div>rep = \
servermanager.CreateRepresentation(app, \
view) </div><div><br></div><div>rep.ColorAttributeType = 0 # point \
data </div><div>rep.ColorArrayName = 'Ids' # color by \
Ids </div><div><br></div><div>view.ResetCamera()</div><div>view.StillRender()&nbs \
p;</div><div>==================================</div><div><br></div><div>-Eric</div><d \
iv><br></div><div><div>------------------------------------------------------</div><div>Eric \
E Monson</div><div>Duke Visualization Technology \
Group</div><div><br></div><div><br></div></div><div><div>On Mar 25, 2009, at 8:19 \
AM, tpk wrote:</div><br class="Apple-interchange-newline"><blockquote \
type="cite"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td \
style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: \
inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; \
font-stretch: inherit; -x-system-font: none;" valign="top">Hi all,<br> <br> Could \
anyone advise me how to create an Append Attributes filter using pvpython?<br> <br> \
Paraview documentation refers to Group Parts filter which, I believe, is obsolete in \
version 3.4.0.<br> <br>My purpose is to merge multiple scalar/vector data sets \
sharing the same geometry. The data sets are loaded using \
PVDReader.<br><br>Thanks,<br>tpk<br></td></tr></tbody></table><br> \
_______________________________________________<br>Powered by <a rel="nofollow" \
target="_blank" href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other \
Kitware open-source projects at <a rel="nofollow" target="_blank" \
href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please \
keep messages on-topic and check the ParaView Wiki at: <a rel="nofollow" \
target="_blank" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br><br>Follow \
this link to subscribe/unsubscribe:<br><a rel="nofollow" target="_blank" \
href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailm \
an/listinfo/paraview</a><br></blockquote></div><br></div></div></blockquote></td></tr></table><br>
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic