<!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.&nbsp; 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>
&quot;<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>
&nbsp;&nbsp;&nbsp; while executing<BR>
&quot;light SetFocalPoint [cam1 GetFocalPoint]&quot;<BR>
&quot;<BR>
<BR>
This is inside a script that I run with % vtk script.&nbsp; If I change the fourth line to &quot;light SetFocalPoint 0.0 0.0 0.0&quot;, it works.&nbsp; 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.&nbsp; It seems to happen whenever the command in [ ] returns an array or list of numbers.&nbsp; Is there some setting or something in Tcl that I am missing?&nbsp;<BR>
<BR>
thanks,<BR>
Romy<BR>
</FONT>
</P>

</BODY>
</HTML>