Thank you all for your reply. I don't quite understand where the problem is from. The .vtp file is readable, but I have to choose the vtkReader for it (there is a window of readers' list appears and I chose "Legacy VTK files"), so, for me, this is perhaps the problem of paraView or something like that. Because with .vtp file, it can't find the right reader to use. So why there is that error "No reader found for /home/thtran/myfile.vtp" with python shell and JavaScript Terminal (I'm sorry, I didn't mention that I used the full path to the file)
'----- Original Message ----- From: William Oquendo <[email protected]> To: David Doria <[email protected]> Cc: Tuan Ha Tran <[email protected]>, [email protected] Sent: Mon, 04 Jun 2012 15:15:18 +0200 (CEST) Subject: Re: [Paraview] .vtp file not readable Maybe this is not the cause, but ..../myfile.vtp is not a correct path, it should read ../myfile.vtp or ../../myfile.vtp You might check your script. Best regards / Cordialmente, William-Fernando Oquendo--------------------------Este correo puede carecer de tildes o eñes debido al teclado. On Mon, Jun 4, 2012 at 6:52 AM, David Doria <[email protected]> wrote: On Mon, Jun 4, 2012 at 4:09 AM, Tuan Ha Tran <[email protected]> wrote: Hi everybody, I have a problem in opening a .vtp file. When I opened from ParaView GUI, I managed to open it by choosing "Legacy VTK Files" (but this file is not marked as "vtkImageData" to be used with my filter) But when I used Python Shell and JavaScript Terminal then my .vtp file is marked "File not readable. No reader found for '..../myfile.vtp'. I wondered if anybody have any idea what happened? Thank you in advance Sounds like the contents of the file are not actually in vtp format (i.e. written with vtkXMLPolyDataWriter). Maybe you used vtkPolyDataWriter to write a .vtp instead of .vtk? Or if you are storing vtkImageData, you should have probably used vtkXMLImageDataWriter to write a .vti. David _______________________________________________ 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
