Hi,
try with this:
[set x 2]
[lindex {1 2 3} $x]
//returns 2 then 3
If you want to use it in expression, maybe you don't want to return the
first value, so:
[set x 2; return][lindex {1 2 3} $x]
Gabor
On Mon, Apr 4, 2016 at 4:05 PM, Mads Lund <[email protected]> wrote:
> If you add a expression node and add the following:
>
> [lindex {1 2 3} 0]
> //it returns 1
>
> but if you add:
>
> [lindex {1 2 3} x]
> //it fails.
>
>
> Is it possible to use x and y as a TCL variable in the expression node?
>
> _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users