[vtkusers] tcl lists as arguments
Miguel Angel Rodriguez Florido
marf at ctm.ulpgc.es
Wed Jul 2 10:10:49 EDT 2008
You have to add the "eval" command:
eval myren SetBackground $blue
Hth.
David Gillard wrote:
> 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.
>
>
>
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
--
Miguel Angel Rodriguez Florido
Center for Technology in Medicine-ULPGC-Gran Canaria-CanaryIslands,Spain
Emails:marf@{ctm.ulpgc.es,bwh.harvard.edu}-http://www.ctm.ulpgc.es/
Tfnos:+34 928 451253, +34 928 452956 - Fax:+34 928 451243
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3250 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080702/a9521997/attachment.bin>
More information about the vtkusers
mailing list