[vtk-developers] Trouble with vtkLight::GetColor()

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Sat May 10 03:29:24 EDT 2003


hi,

Something has changed recently in CVS to trigger this error.  

 In [1]: import vtk
 In [2]: l = vtk.vtkLight()
 In [3]: l.GetColor()
 -------------------------------------------------------------------
 TypeError                          Traceback (most recent call last)
 TypeError: function takes exactly 1 argument (0 given)

 In [4]: p = vtk.vtkProperty()
 In [5]: p.GetColor ()
 Out[5]: (1.0, 1.0, 1.0)

No one has changed the hints and I can't see why vtkLight suffers from
this problem.  The problem seems to vanish when I add something like
this to hints.
 
 vtkLight             GetColor                301 3

But I'm not sure at all that this is right since hints has not been
changed in the recent past.

Could someone please clarify?

Thanks.
prabhu



More information about the vtk-developers mailing list