Hey Dan,
I am not sure if I am reposting my former message, but here goes.
Pardon me if I didn’t explain it enough in my former message. English is my second language… and code is probably my 1000th language. If not something almost as alien.
Well yeah anyway your code did exactly the opposite of what I tried to convey.
What happens now asfar as I understand is:
“I” places itself at the bottom of “L”
I wanted the bottom of “I” to place itself at the top of L
(I am trying to make a text stay 200px away from the bottom edge of my comp. No matter long the text)
L = thisComp.layer("Your Text Layer");
for (i = thisComp.height; i >= 0; i--){
temp = L.sampleImage([thisComp.width/2,i],[thisComp.width/2,0.5],true,time);
if (temp[3] > 0) break;
}
[value[0],i]