ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Linear expression alternative?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Hailey Moua
Linear expression alternative?
on Jun 10, 2018 at 6:34:22 am

I just learned about the linear expression from a guide for the use of timing an animation to a beat in the music of a video.
Return type: Number or Array.

Argument type: t, tMin, and tMax are Numbers, and value1 and value2 are Numbers or Arrays.

Returns value1 when t <= tMin. Returns value2 when t >= tMax. Returns a linear interpolation between value1 and value2 when tMin < t < tMax.

The problem:

I only want to return a value when t >= tMin and when t <= tMax; So basically only when the value is between the minimum and maximum

I really don't know much about code at all and would really appreciate any assistance

Return to posts index

Dan Ebberts
Re: Linear expression alternative?
on Jun 10, 2018 at 1:51:38 pm

Like this maybe:

if (t >= tMin && t <= tMax)


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 All Rights Reserved