Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Exit

0

/t5/after-effects-discussions/math-sin-expression-problem-2/td-p/14882257
Sep 26, 2024
Sep 26, 2024

Copy link to clipboard

Copied

Hi,

I need some guidance from seniors here. If my AE comp height 1080, That means my Y axis limit is from 0 t0 1080. Right? that means My Sin wave's crest/peek will touch only two borders/egdes up and down where in Y axis down is 0 pixel and up is 1080. Then why the sin wave crossing the top/up edge here?? I already told the AE that value is 1080 in expression. then why its not listeing to the expression? When I specify the value in 'Expression' , the property that is linked to the expression must listen to that right? Please help me.

Square's Y position must stay between 0 and 1080, I mean it must only oscillate in between 0 and 1080, nowhere I said go beyong that. then why its going?

TOPICS

Error or problem
,
Expressions

Community guidelines

Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Enthusiast
,
Sep 26, 2024
Sep 26, 2024

The value of sine oscillates between 1 and -1, so there is a difference of 2.

If you want a range of 1080, you need to oscillate between 540 and -540,

so something like:

`Math.sin(time) * 540 + value`

2
Replies
2

/t5/after-effects-discussions/math-sin-expression-problem-2/m-p/14882303#M256519
Sep 26, 2024
Sep 26, 2024

Copy link to clipboard

Copied

The value of sine oscillates between 1 and -1, so there is a difference of 2.

If you want a range of 1080, you need to oscillate between 540 and -540,

so something like:

`Math.sin(time) * 540 + value`

Community guidelines

Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Suraiya A
AUTHOR

Engaged
,

LATEST
/t5/after-effects-discussions/math-sin-expression-problem-2/m-p/14882336#M256522
Sep 26, 2024
Sep 26, 2024

Copy link to clipboard

Copied

😮 😮 😮 You are so right. Thank you so much.

Community guidelines

Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Resources

Troubleshooting FAQs

After Effects Community Recap

Getting started with After Effects

Copyright © 2024 Adobe. All rights reserved.