[vtkusers] URGENT - VTKScalars()

David Gobbi dgobbi at atamai.com
Tue Sep 26 09:55:34 EDT 2006


Hi Azni,

The vtkScalars class is gone, it has been replaced by vtkDataArray.
Try the following:

myscalars = vtk.vtkShortArray()

or

myscalars = vtk.vtkDataArray.CreateDataArray(vtk.VTK_SHORT)


 - David


azni alias wrote:
> I'm having a problem when tying to run my program.. here is the error:
>
> myscalars = vtk.vtkScalars()
> AttributeError: 'module' object has no attribute 'vtkScalars'
>
> may i know what is the problem? here are the header of the program.:
>
> from vtk import *
> from vtk.tk.vtkTkRenderWindowInteractor import *
> from Tkinter import *
> from vtk.util.misc import vtkGetDataRoot
> from vtk.util.colors import *
>
> Thanks,
>
> azni
>
> _________________________________________________________________
> Find love online with MSN Personals. 
> http://match.msn.com.my/match/mt.cfm?pg=channel
>
> _______________________________________________
> This is the private VTK discussion list. Please keep messages 
> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list