[vtkusers] python array syntax
David Doria
daviddoria+vtk at gmail.com
Sat May 1 20:34:17 EDT 2010
I am trying to rename an array:
input = self.GetPolyDataInput();
oldColors = input.GetPointData().GetArray("RGB colors")
oldColors.SetName("colors")
it says "no attribute SetName"
2) I want to get a tuple from an array:
oldColors = input.GetPointData().GetArray("RGB colors")
a = oldColors.GetValue(0);
it says "no attribute GetValue".
Anyone know the correct syntax for either of these?
Thanks,
David
More information about the vtkusers
mailing list