On 24, Apr 2009 07:04 PM, David Doria <[email protected]> wrote:

>I want to open some .ply files and save them as .vtp files in a python
>script.
>
>For reading vtp's, I've used
>reader =
>servermanager.sources.XMLPolyDataReader(FileName=ModelFilename)
>
>I saw there was a vtkPly class, so I tried
>reader = servermanager.sources.PlyFile(FileName=ModelFilename)
>and it says "no attribute PlyFile"


to take the guess work out, you may simply refer to the help using the
dir() command

dir(servermanager.sources)    # will print out all sources, and you will
find what you are looking for under the name

servermanager.sources.PLYreader()




_______________________________________________
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