1) Adding a view after adding a source with python<br>I have the following script which adds a sphere to the pipeline browser<br><br>#!/usr/bin/pvpython<br>#must be run from inside paraview!<br><br>from paraview import servermanager<br>
<br>sphere = servermanager.sources.Sphere()<br>pm=servermanager.ProxyManager()<br>pm.RegisterProxy("sources","mysource",sphere)<br><br>This adds "mysource" to the pipeline browser. According to the wiki, it sounds like the default visibility should be off, but you should just be able to click the "eye" next to it to actually display the object. However, I am not seeing an eye at all, not even a disabled one. (<a href="http://rpi.edu/%7Edoriad/NoEye.jpg" target="_blank">http://rpi.edu/~doriad/NoEye.jpg</a>)<br>
<br>2) The command history (ie. pressing the up arrow to get to previous commands) does not seem to work in the python shell inside paraview. Can it be enabled?<br><br>3)
I can access all of the open sources with this:
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 10pt; color: rgb(0, 0, 0);">p=pm.GetProxiesInGroup("sources").items()</span></p>then get a single source with <br>
a=p[0] #up to p[len(p)-1]<br><br>When I dir(a), there are no properties (such as visibility) listed. How do you change that type of property? (the idea would be to something such as iterate through all of the open items one at a time and save screen shots).<br>
<br>Any help would be great!<br><br clear="all">Thanks,<br><br>David<br>