Get the x position for underlaying layer is white
Hey!
Trying to figure out how to do this but I'm not as good with code as I want...
The concept is:
• I have a layer from which I want to sample to color information using sampleImage
• On a each layer I want a for loop stepping through the x position one pixel at the tame until the sampled color is white
• When the desired color is found I want the for loop to stop executing.
• Next step is I want to measure the distance from the left side of the comp until this new x position of the color change.
I figured this concept is not that complicated but my for loops keeps crashing.
Anyone have an idea how to set this up?
