Well i was more thinking of the x position in the expression node.
I wanted to turn some geometry into image data using the expression node (
like the ParticleToImage node), and though that I could iterate using the x
and y offset.

But after a bit of searching I found someone who explained that it was not
possible.

However I did find another way to do it that doesn't involve tcl. So
consider it solved :)



Den mandag den 4. april 2016 skrev Gabor L. Toth <[email protected]>:

> 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]
> <javascript:_e(%7B%7D,'cvml','[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]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>,
>> http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>>
>
>

-- 
Best regards.
Mads Hagbarth Lund
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to