<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear vtk users</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I am using VTK with python to&nbsp;investigate 
some&nbsp;basic visualisation tools, and I can't get&nbsp;the 
SetScalarComponentFromFloat() method to work. Here is a sample of code that does 
not work.&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>...</FONT></DIV>
<DIV><FONT face=Arial size=2>id = 
vtk.vtkImageData()<BR>id.SetDimensions(100,100,1)<BR>id.SetScalarTypeToUnsignedShort()<BR>id.SetNumberOfScalarComponents(1)<BR>id.SetScalarComponentFromFloat 
(1, 1, 1, 0,1.0)<BR>...</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT>
<DIV><FONT face=Arial size=2>Have&nbsp;I missed something? Does the method exist 
with the python wrapper? Is there any other way to access individual scalars 
with python?</FONT></DIV>
<DIV><FONT face=Arial size=2>Any&nbsp;advice will be appreciate, as I am new in 
VTK. Thanks all!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Lionel</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial 
size=2>&nbsp;</DIV></FONT></BODY></HTML>