Python dir function is broken
ParaView's python dir function is broken. Here is how to replicate:
- ParaView 5.7.0, OS X, paraview.org download
sphere=Sphere()
Show()
Render()
camera=GetActiveCamera()
dir(camera)
['AddObserver', 'ApplyTransform', 'Azimuth', 'BreakOnError', 'ComputeViewPlaneNormal', 'DebugOff', 'DebugOn', 'DeepCopy',
--snip--
'UnRegister', 'UpdateViewport', 'UseExplicitProjectionTransformMatrixOff', 'UseExplicitProjectionTransformMatrixOn', 'UseHorizontalViewAngleOff', 'UseHorizontalViewAngleOn', 'UseOffAxisProjectionOff', 'UseOffAxisProjectionOn', 'ViewingRaysModified', 'Yaw', 'Zoom', '__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__this__', '__vtkname__']
- ParaView 5.8.0-RC2, OS X, paraview.org download
sphere=Sphere()
Show()
Render()
camera=GetActiveCamera()
dir(camera)
['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__']
camera.Roll(10)
Render()
Does work!
dir() should show the methods for vtkCamera!
Edited by W. Alan Scott