I can't say for sure but my guess is that the slice you created doesn't intersect your geometry and thus you have 0 points and you won't get any point data to pseudo-color by. The other possibility is that the slice filter hasn't been updated yet.
You can try something like self.newSlice.GetDataInformation().GetNumberOfPoints() to see if any points exist in the filter's output. Make sure to call self.newSlice.UpdatePipeline() before doing that though. Andy On Sun, Feb 24, 2013 at 9:57 AM, Christian Klinge <[email protected]>wrote: > Hello together,**** > > ** ** > > I wrote a short python script to create slices with local coordinate > systems in ParaView. Sometimes then the script should create a new slide > with defined parameter about scalar factor, origin and normal vector, the > function returns a value error. The message told me that the point data > array cannot be found in the simulation. I tested the function with a lot > of different parameters and recognizes that the function does not fail > because of the variance of parameters. After repeating of calling the > function with the same parameters, the function worked sometimes and it > fails. So now I don’t know if it is a mistake of myself or it is a bug in > ParaView. **** > > Maybe you can give me a short answer about it. Thank you all.**** > > ** ** > > I used ParaView on a Linux machine calling the pvbatch with the script as > parameter from the shell. The script is append at the end of this mail.*** > * > > ** ** > > Regards,**** > > ** ** > > Christian**** > > _______________________________________________ > 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
