Skip to main content
S_ A
Inspiring
September 26, 2024
Answered

Math sin expression problem-3

  • September 26, 2024
  • 1 reply
  • 1047 views

Hi,

I cant write expression. But I try to. I dnt know how can I write this, because what I wrote is not giving me my expected result.

 

I want the circle to stay  beside the clock. and I linked the circle's Y position movement with the rotation of the clock hand. but the X axis of the circle is in weird position.  how should I write the expression to keep the circle's X positon fixed or whereever I want it or just beside the clock but only Y should be take its value from the rotation of the clock hand.

Please guide me.

 

 

 

 

 

This topic has been closed for replies.
Correct answer Airweb_AE

Yes, the rythm is very cute. The rythm is like a Monk is floating. I like it. but Its still staying at the edge, It dsnt come down and stay beside the clock!!! 😮 why!! I want the cute ocilliation from your expression but also the sun/circle needs to be beside the clock.


If you want the sun to be next to the clock, adjust the X position of the sun.

You can also adjust the amplitude.

 

1 reply

Legend
September 26, 2024

Your dimensions are separated, so you should return only a single value and not an array.

just return temp value

 

S_ A
S_ AAuthor
Inspiring
September 26, 2024

I am very slow at picking clue,  face palm, I dnt understand wht u said. what should I write? 

 

temp = Math.sin(thisComp.layer("rotating hand").transform.rotation / 5) * 100;

[temp [value]];

 

this?? 

 

Legend
September 26, 2024

just return:

Math.sin(thisComp.layer("rotating hand").transform.rotation / 5) * 100;