Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Using throw with another expression

  • Using throw with another expression

    Posted by Andy Willers on May 25, 2015 at 1:56 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!

    Andy Willers replied 11 years, 3 months ago 52,923 Members · 1 Reply
  • 1 Reply
  • Andy Willers

    May 25, 2015 at 2:02 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]

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy