I am currently in the process of teaching myself some image processing skills,
you know all that geeky math stuff that TDs like to throw at ya 🙂
So I was trying to use a Color Expression to mirror one half of
the image to it’s other half. Just for the fun of it.
Basically what I have is (for R channel but is the same for all others)
X = x/width
X>0.5?r:sample(width-x-1,y)
Until I noticed that there isn’t a sample function to sample
the pixel value of a given position in the image.
This seems like a strange omission, I mean don’t you have
to reference pixel values other than the current value that’s
evaluated pretty often?
Or am I totally missing something?
I know there’s nuke.sample() but that’s Python and you can’t
enter that into the Color Expression fields, or can you?
Turning to the manual I found the chart of TCL functions at the
end and indeed there’s no sample function.
Am I out of luck here?
Thanks for reading!
Flink