[Paraview] Batch importing STL files into ParaView

Berk Geveci berk.geveci at kitware.com
Mon Jun 15 16:41:17 EDT 2009


Forwarding with some minor edits.

Date:   Tue, 9 Jun 2009 17:23:42 -0400
Subject:        Mailing List
From:   brian mcgaw <mcgawb at gmail.com>
To:     kitware at kitware.com


Heya,

Also, I've been trying to script a batch import of .stl files into
ParaView and have been referencing these two pages to get the script
below:

http://www.vtk.org/Wiki/Load_many_sequentially_named_files
http://ait.web.psi.ch/services/visualization/paraview_python.html

pm = servermanager.ProxyManager()
for i in range(566):
    reader = servermanager.sources.stlreader(FileNames="/Users/brian/Documents/Processing/visualization/data/"
+ repr(i) + ".stl")
    pm.RegisterProxy('sources',repr(i) + ".stl",reader)

I would like to then Show(pm) but have found that Show no longer seems
to be a working function (or at least I am missing something in how I
call it).  I've looked all over the Wiki and through your Class Index
but am still confused.  Can you be any help?  Thanks!

.Brian

ps. Is there any ParaView functionality that supports live
Visualization?  I've never encountered any software that can handle
such huge amounts of data so elegantly, I would love to be able to
somehow combine some of your tools with my Music Visualization
research in Processing....


More information about the ParaView mailing list