Open jjstickel opened 5 years ago
Quick followup. I just discovered that I can do tvtkobject.get() to see a list of the "traits" attributes. This is very useful. For some of the objects, like the polydata example above, most (maybe all?) of these attributes do not tab-complete.
I'm using tvtk for the first time, and I find it a bit difficult to know what attributes to use with the various tvtk objects. Using tab-complete in an iPython shell is helpful (although still challenging with so many attributes available and most being not useful). And then I found a case where the attribute I want exists but does not tab-complete! Specifically, I used
tvtk.XMLPolyDataReader
to read in a .vtp file and get the output:I want the points. After browsing the docs, I found that I can get them with
data.points
. However,data.points
does not tab-complete. If so, I would have found it a lot earlier. I'm also concerned there are other attributes I could use that I am missing.My system is MacOS 10.12.6 with software components installed via Macports: