Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: ForumAE BasicsAE ExpressionsTutorialsArticlesPodcastsMotion GraphicsTrainingCinema 4D

Scale position keyframes with expression

Cow Forums : Adobe After Effects Expressions
cow
Scale position keyframes with expression
by Bohdan Stehlik on May 19, 2008 at 1:02:18 pm

Hello everybody, this is my first post in the expressions forum.

My problem is the following : I have a Comp (NTSC - DV - Widescreen Preset), containing multiple layers parented to a null. The null is used to scale and move all the layers together. So far so good.
Now I need to rebuild all my Comps in HD (HDTV 720 - Squarepix Preset). I can easily position the HD-footage and adjustment layers on the first frame, so they match the SD Comp, but when I paste the null from the SD Comp, the position keyframes are obviously off, since they are in pixel-values and my new Comp is bigger.

Is it possible to scale the position keyframes with an expression, so the movement would be in the same proportions as in my SD Comp?

I hope all this makes sense.

Many thanks in advance for your responses!

Bohdan

P.S. There is a wiggle expression on the position keyframes, if that makes any difference.

Respond to this post     Return to posts index

cow
Re: Scale position keyframes with expression
by Dan Ebberts on May 19, 2008 at 1:42:45 pm

You should be able to do it by encasing your wiggle expression in somethng like this:

xRatio = 1280/720;
yRatio = 720/486;
w = wiggle(1,50); // use your wiggle expression here
[w[0]*xRatio, w[1]*yRatio]


Dan



Respond to this post     Return to posts index

cow
Re: Scale position keyframes with expression
by Bohdan Stehlik on May 19, 2008 at 4:51:42 pm

Thank you very very much, Dan!

Your expression is the solution, and saves me over a week of work.....I have to redo more than fifty comps.

I am extremely grateful for your help!

Bohdan

Respond to this post     Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]