FORUMS: list search recent posts

Pixel Per second Expression with manual stop at the end

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Scott Smith
Pixel Per second Expression with manual stop at the end
on Mar 11, 2018 at 1:03:59 pm

Hi
I was using this expression to create a slideshow of images moving across the screen

veloc = 150; //Move object 150 pixel on x axis per second
x = position[0] + (time - inPoint) *veloc;
y = position[1];
[x,y]

However I would like to be able to come to a stop at the end, I tried linking the 150 to a slider but when i animate this to zero it sends the whole thing back to the beginning.

Reason for this is that I want consistent speed of images in different comps, however some comps have more or fewer images.

Thanks in advance


Return to posts index

Cassius Marques
Re: Pixel Per second Expression with manual stop at the end
on Mar 12, 2018 at 12:03:42 pm

Use a slider control to drive a linear expression to transition between that value and another one of your choosing.

something like:
veloc = 150; //Move object 150 pixel on x axis per second
x = 0 + (time - inPoint) *veloc;
y = position[1];
v1=[x,y];
v2=[value[0],y];
linear(effect("Slider Control")("Slider"),1,0,v1,v2)


You can then move it to where you want it to stop and just animate a slider going from 0 to 1 to make it stop there. Change the "0" value in line 2 to set where it starts.

Cassius Marques
http://www.zapfilmes.com


Return to posts index

Walter Soyka
Re: Pixel Per second Expression with manual stop at the end
on Mar 13, 2018 at 3:24:09 am

I would probably precompose and manually keyframe Time Remapping, so I could get exactly the easing curve I wanted.

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

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