ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Using throw with another expression

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Andy WillersUsing throw with another expression
by on May 25, 2015 at 1:56:26 pm

Hi all - I want to use the throw expression to animate a null along the y axis, but have another expression moving the null on the x axis already - when I put in the throw expression it overides the movement that the other expression is giving the x axis - is there any way I can limit the throw to just changing the y value?

Here are the two expressions I want to use -

// Throw (move at a constant speed without keyframes)
veloc = 10; //horizontal velocity (pixels per second)
y = position[0] + (time - inPoint) *veloc;
x = position[1];
[x,y]

and

transform.position + 45*(0,thisComp.layer("midi").effect("ch_3_pitch")("Slider")-60)

Any help would be amazing!

Cheers!


Return to posts index

Andy WillersRe: Using throw with another expression
by on May 25, 2015 at 2:02:27 pm

Silly me! I figured out it by using:

// Throw (move at a constant speed without keyframes)
veloc = 250; //horizontal velocity (pixels per second)
y = position[0] + (time - inPoint) *veloc;
x = position[1] + 45*(0,thisComp.layer("midi").effect("ch_3_pitch")("Slider")-60);
[x,y]


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]