Camera/Light FocalPoint/Position
Bill Lorensen
wlorens1 at nycap.rr.com
Mon May 29 12:33:25 EDT 2000
You need an eval on the SetPosition line:
eval light SetPosition [cam1 GetPosition]
It's a tcl'ism.
Bill
At 10:06 AM 5/29/00 -0500, Eduardo Kortright wrote:
>Hello,
>
>Sorry to bother everyone with what is probably a trivial question.
>The VTK User's Manual has the following innocent-looking example:
>
>vtkCamera cam1
>vtkLight light
> light SetPosition [cam1 GetPosition]
>
>This tcl code will not work on a recent nightly release of VTK for
>Windows.
>
>The result is an error: Object named: light, could not find requested
>method: SetPosition or the method was called with incorrect arguments.
>
>The same happens if you try to set the FocalPoint for the light. The
>same error occurs if you similarly try to set the camera's position and
>focal point as well. No error occurs if you specify coordinates using
>constants as in
>
> light SetPosition 0 0 3
>
>What am I missing? Thanks for any pointers.
>
>--
>Eduardo Kortright Department of Computer Science
>eduardo at cs.uno.edu University of New Orleans
>Voice: (504) 280-6626 Lakefront Campus
>FAX: (504) 280-7228 New Orleans, LA 70148
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------
More information about the vtkusers
mailing list