<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7650.28">
<TITLE>simple question about Tcl and VTK</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>I know there is probably some simple fix for this or some Tcl syntax I am just not aware of, but I seem to be having issues combing commands when arrays of numbers are involved. For instance, the following code:<BR>
<BR>
vtkCamera cam1<BR>
cam1 SetFocalPoint 0.0 0.0 0.0<BR>
vtkLight light<BR>
light SetFocalPoint [cam1 GetFocalPoint]<BR>
<BR>
returns the following error:<BR>
<BR>
"<BR>
Error in startup script: Object named: light, could not find requested method: SetFocalPoint<BR>
or the method was called with incorrect arguments.<BR>
<BR>
while executing<BR>
"light SetFocalPoint [cam1 GetFocalPoint]"<BR>
"<BR>
<BR>
This is inside a script that I run with % vtk script. If I change the fourth line to "light SetFocalPoint 0.0 0.0 0.0", it works. I am very confused why I am getting an error, there are plenty of VTK/Tcl examples in the literature that use these very commands. It seems to happen whenever the command in [ ] returns an array or list of numbers. Is there some setting or something in Tcl that I am missing? <BR>
<BR>
thanks,<BR>
Romy<BR>
</FONT>
</P>
</BODY>
</HTML>