Still pass in the "reader" to AnimateReader() call. You are not "modifying the data", merely how it's rendered.
Utkarsh On Sun, Mar 20, 2011 at 3:30 AM, Alexis Chan <[email protected]> wrote: > Hi > > I created pvd files from vtm file series to enable animation in ParaView via > Python script. I want to modify the display properties of the dataset before > animating them. But i got a runtime exception in the "AnimateReader" step. > That's understandable since "dp" is not a reader. How can I animate the > modified data? > > from paraview.simple import * > > from paraview import servermanager > > reader = PVDReader(FileName="TestCase.pvd") > > dp = GetDisplayProperties(reader) > > dp.Representation='Surface' > > for a in reader.PointData: > > if (a.GetName() == 'Velocity'): > > range = a.GetRange() > > dp.LookupTable = GetLookupTableForArray(a.GetName(), 1,RGBPoints = > [range[0], 0, 0, 1, range[1], 1, 0, 0],ColorSpace = "Diverging") > > dp.ColorArrayName = a.GetName() > > Render() > > AnimateReader(dp,filename="TestCase.avi") > > > > > -- > Regards, > Alexis > > > _______________________________________________ > 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
