Activity › Forums › Adobe After Effects › Many anchor points and Pan Behind
-
Many anchor points and Pan Behind
Posted by Robert Paynter on October 16, 2007 at 5:31 pmI would like to set 100+ layers anchor points to 0.0 without moving the layers. is there a way?
Kevin Camp replied 18 years, 7 months ago 3 Members · 5 Replies -
5 Replies
-
Robert Paynter
October 16, 2007 at 6:16 pmah .. but they all the layers move. It’s not like the pan behind.
-
Robert Paynter
October 16, 2007 at 7:26 pmbut they are not the same size and there in lies the problem .. the sad sad problem.
-
Kevin Camp
October 16, 2007 at 8:01 pmthis might work…
add a null. select all your layers that need to have znchor points set to 0,0 and parent them to the null. with the layers still selected hit ‘a’ and set the anchor points to 0,0 but take note of the anchor point coordinates of the layer prior to setting to 0,0 (like 100,50). now, select the null and subtract those values from the null’s position (if the null was at 320,240, using my example, change it to 220,190). now you can unparent your layers from the null.
i think that should work…
otherwise you may be looking at writing a script (or just do each by hand).
Kevin Camp
Designer – KCPQ, KMYQ & KRCW -
Darby Edelen
October 16, 2007 at 11:56 pm[Dave LaRonde] “Maybe there’s a way to access the horizontal & vertical dimensions of the individual layers.”
widthand height should do the trick for that.Darby Edelen
DVD Menu Artist
Left Coast Digital
Aptos, CA -
Kevin Camp
October 17, 2007 at 3:02 pmwell i had time to try my null idea… didn’t work. sorry for wasting your time…
i’m pretty sure, this could be done with a script. but unless you do this often, it is probably quicker to just do the repositioning by hand…
if none of these layers are rotated, i figured out and expression to link the position to a change in the anchorpoint. i’m not sure if this method will save you much time…
first, you need to keyframe the anchor point change (so, key(1) would be original anchor point, key(2) the 0,0 anchor point). this can be done for all layers at once.
then you need to paste this into the position property of each layer:
aOrig = transform.anchorPoint.key(1).value;
aZeroed = transform.anchorPoint.key(2).value;
d = sub(aOrig, aZeroed);
if (time < transform.anchorPoint.key(2).time){ position }else{ sub(position, d) } it seems to work for me, but it won't work for rotated layers (although you may be able to add that to the repositioning calculation). it's not as fast or simple as a script would be, but it could save some time.... Kevin Camp Designer – KCPQ, KMYQ & KRCW
Reply to this Discussion! Login or Sign Up