<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 10/06/2011 07:33 AM, pat marion wrote:
<blockquote
cite="mid:CAMetC=RzM2EmM+YYXjDaFwjvi9tdbM-6ORraJVWm1jFQ9UnRwA@mail.gmail.com"
type="cite">series_names = [name for name in
d.GetProperty("SeriesNamesInfo")]</blockquote>
<font size="+1"><font face="Droid Serif"><br>
Hi, Pat.<br>
<br>
Thanks for the helpful pointers. <br>
<br>
After setting everything up in ParaView (3.10.1, 64-bit), I'm
not getting results. Here is what I did from the ParaView
Python Shell:<br>
<br>
</font></font>
<style type="text/css">p, li { white-space: pre-wrap; }</style>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family:
'Courier'; font-size: 10pt; color: rgb(0, 0, 0);">>>> p
= FindSource("PlotData1")</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family:
'Courier'; font-size: 10pt; color: rgb(0, 0, 0);">>>>
rep = GetDisplayProperties(p)</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family:
'Courier'; font-size: 10pt; color: rgb(0, 0, 0);">>>>
rep.GetProperty("SeriesNamesInfo")</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family:
'Courier'; font-size: 10pt; color: rgb(0, 150, 0);">None</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family:
'Courier'; font-size: 10pt; color: rgb(0, 0, 0);">>>> </span></p>
<font size="+1"><font face="Droid Serif"><br>
While, at the same time, the Object Inspector shows 27 series,
each with the correct name.<br>
<br>
Does something need to be updated or refreshed first? I notice
in the pvblot script, there is a <br>
<br>
rep.Update()<br>
<br>
but when I try that in ParaView's python shell (after getting
the representation the way I showed above), it tells me:<br>
</font></font>
<style type="text/css">p, li { white-space: pre-wrap; }</style>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family:
'Courier'; font-size: 10pt; color: rgb(0, 0, 0);">>>>
rep.Update()</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family:
'Courier'; font-size: 10pt; color: rgb(255, 0, 0);">Traceback
(most recent call last):</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family:
'Courier'; font-size: 10pt; color: rgb(255, 0, 0);"> File
"<console>", line 1, in <module></span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family:
'Courier'; font-size: 10pt; color: rgb(255, 0, 0);"> File
"/usr/lib64/paraview/site-packages/paraview/servermanager.py",
line 370, in __getattr__</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family:
'Courier'; font-size: 10pt; color: rgb(255, 0, 0);"> return
getattr(self.SMProxy, name)</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family:
'Courier'; font-size: 10pt; color: rgb(255, 0, 0);">AttributeError:
Update</span></p>
<style type="text/css">p, li { white-space: pre-wrap; }</style>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family:
'Courier'; font-size: 10pt; color: rgb(0, 0, 0);">>>> </span></p>
<br>
<font size="+1"><font face="Droid Serif">Thanks!<br>
<br>
Greg<br>
<br>
<br>
</font></font>
</body>
</html>