[Paraview] 'UnstructuredGridReader' is not defined

David López dysmarbella at gmail.com
Fri Feb 14 07:33:03 EST 2014


Hello, i´m trying to open a vtu file via python:

try: paraview.simple
except: from paraview.simple import *
import sys
path = "c:/temp/prueba/"
fichero_vtu = 'groupvtu_1.vtu'

sys.path.append(path)
paraview.simple._DisableFirstRenderCameraReset()
GRUPO_vtu = XMLUnstructuredGridReader( FileName=[path + fichero_vtu] )
GRUPO_vtu.PointArrayStatus = []
GRUPO_vtu.CellArrayStatus = []
GRUPO_VTU = GetActiveSource()
RenameSource("MODEL", GRUPO_vtu)
MODEL = GRUPO_VTU
del GRUPO_VTU
Render()

This Works fine in Paraview 3.98.1 but y get this error on Paraview 4.0.1
 File "<string>", line 12, in <module>

NameError: name 'UnstructuredGridReader' is not defined


I need help, thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140214/9d82751e/attachment.html>


More information about the ParaView mailing list