Thanks for the prompt answer, Eric.
That seems to work nicely.

tpk

From: Eric E. Monson <[email protected]>
Subject: Re: [Paraview] Creating Append Attributes filter using python
To: "tpk" <[email protected]>
Cc: [email protected]
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




      
_______________________________________________
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

Reply via email to