[vtkusers] tcl lists as arguments

David Gillard dgillard at pangeosubsea.com
Wed Jul 2 09:52:49 EDT 2008


Here is a (hopefully) easily answerable question.

suppose I have the following variable declared in a tcl script:

set blue "0 0 1"

Now, why will

vtkRenderer myren
.
.
.
myren SetBackground [lindex $blue 0] [lindex $blue 1] [lindex $blue 2]

work, but

myren SetBackground $blue

will not? Doing it the former way is a bit of a pain.









More information about the vtkusers mailing list