-
sampleImage returns inaccurate result?
I’m playing around and stumbled upon this tutorial that uses greyness of a pixel to determine scale: https://www.youtube.com/watch?v=4OQN2mHQuD0
To get R value of a pixel it uses sampleImage() method. It samples the central point of a layer. I found it strange that even though the central point is still 100% black, scaling of a shape layer already occurred. Check this image at
t=9m26s
for example.
The expression in question:
sampleSize = [1,1];
samplePoint = thisComp.layer(“Control Layer”).transform.position; // it is [960,540]
sampleColor = thisComp.layer(“Control Layer”).sampleImage(sampleSize,samplePoint)[0];[sampleColor*100,sampleColor*100];
What am I missing here?
Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.