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

Math sin expression problem-2

Enthusiast ,
Sep 26, 2024 Sep 26, 2024

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
329
Translate
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

 

 

Translate
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

 

 

Translate
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
Enthusiast ,
Sep 26, 2024 Sep 26, 2024
LATEST

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

Translate
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