Re: Random layer position constrained by another layer's alpha by Dan Ebberts on Feb 27, 2008 at 12:31:24 pm in the Adobe After Effects Expressions Forum This seems to work for 2D. I'm not sure how you have your 2.5 D set up, but you should be able to do something similar.
L = thisComp.layer("island");
seedRandom(index,true);
P = L.transform.position;
offset = [L.width,L.height]/2;
minPos = P - offset;
maxPos = P + offset;
while(true){...
Re: Accessing textIndex from the Position property by Dan Ebberts on Feb 27, 2008 at 12:31:24 pm in the Adobe After Effects Expressions Forum Lloyd,
It looks like you understand the limitations. My example wasn't the best though. If you change it to this:
seedRandom(textIndex,true);
random([-100,-100],[100,100]);
you'll see that you have access to a rectangle with the character's original position in the center. I've actually constructed...