ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Trigger Animation by Position

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Andy Wölfl
Trigger Animation by Position
on Oct 13, 2018 at 1:09:10 pm

Hello everybody,

first of all, I wasn't really sure how to put the title so here is a video and afterwards the explanation what I want to achieve:








I would like the Shape-Layer "particle" start to animate from it's current yPosition towards a predefined yPosition as soon as the "threshold" rises and pases the "particle".

I have a basic knowledge of Expressions and tried some things so far, but did not achieve what I have in mind.

Any suggestions are welcome.

In case you want to download the AfterEffects file (CC2018), here is the link:
https://www.dropbox.com/s/qk7l0lz0r0ocon3/ExpressionTrigger.aep?dl=0

Thanks for your help.


Return to posts index

Gonçalo Silva
Re: Trigger Animation by Position
on Oct 13, 2018 at 4:46:35 pm

Try this ,

Paste this on "particle" -> Transform -> X Position :

Hope this will help

t = time;
if(thisComp.layer("threshold").transform.yPosition.valueAtTime(t) &lt; transform.yPosition.valueAtTime(t)){
loopOut('cycle');
}
else {
key(1);
}


Return to posts index

Gonçalo Silva
Re: Trigger Animation by Position
on Oct 13, 2018 at 6:14:44 pm

Here it is the corrected one :

t = time;

if(thisComp.layer("threshold").transform.yPosition.valueAtTime(t) &lt; transform.yPosition.valueAtTime(t)){
easeIn(time,inPoint+5,inPoint+9,transform.yPosition.value,500);
}
else {
transform.yPosition;
}


Return to posts index


Andy Wölfl
Re: Trigger Animation by Position
on Oct 13, 2018 at 6:22:50 pm

Here a video how I should look like:






Return to posts index

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