Skip to main content
S_ A
Inspiring
Sep 26, 2024 2:52 PM UTC
Answered

Math sin expression problem-3

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 is closed to new replies. Start a new post to keep the conversation going.
Airweb_AECorrect answer
Legend
Sep 26, 2024 4:31 PM UTC

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.

 

11 replies

Legend
Sep 26, 2024 3:09 PM UTC

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

just return temp value

 

Translate
S_ A
S_ AAuthor
Inspiring
Sep 26, 2024 3:15 PM UTC

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

 

Translate
Legend
Sep 26, 2024 3:23 PM UTC

just return:

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

 

Translate