• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Math sin expression problem-2

Engaged ,
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?

 

Red dots are where the crest/peek of the wave shud stay..Red dots are where the crest/peek of the wave shud stay..

 

 

TOPICS
Error or problem , Expressions

Views

177

Translate

Translate

Report

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

correct answers 1 Correct answer

Advocate , 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

 

 

Votes

Translate

Translate
Advocate ,
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

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Sep 26, 2024 Sep 26, 2024

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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