# Need this type of sine wave animation without the cuts as like it is a wire. How to make?

[Link for the video https://drive.google.com/open?id=1tTYkHJjxdJkd1SB3rI5Rcoxq1GttfyQU

this is the link for the video that i have already made but it have cuts The answer you posted was similar to the required animation by me. But The spline is in square shape, I need a circular one. Can u help me with that.

and also how can we decrease the speed or increase the length of the spline.

• What cuts? Do you want a continuous spline? – Omar Ahmad Jun 12 at 9:51
• yes, i need a continous spline. – Brahmdeep Singh Jun 12 at 10:53
• Use the Spline From Points node. – Omar Ahmad Jun 12 at 10:57
• ok, then can i use the above method to animate it? – Brahmdeep Singh Jun 13 at 6:41
• Yes, extract the locations of your matrices and use them as the input vectors of the node. Just like the example in the documentation. – Omar Ahmad Jun 13 at 7:24

## 1 Answer

The curve you are trying to create can be described by the following parametric equation:

$$\begin{bmatrix} p\\ \alpha p \sin({\beta t + p}) \end{bmatrix}$$

Where $$\beta$$ and $$\alpha$$ are arbitrary constants, $$t$$ is the time, and $$p$$ is the parameter. We can implement this in Animation Nodes as follows: • ya the animation was similar as required by me, but the spline is in square shape, how to make it circle. – Brahmdeep Singh Jun 13 at 12:01
• @BrahmdeepSingh Increase the value of the Bevel Resolution in the Curve Object Output node to get a circular shape. Change the values of $\beta$, $\alpha$, and the end value of the range node, see what they will produce. – Omar Ahmad Jun 13 at 12:22
• okay I got the circular shape, one last thing how can I get variable speed, like faster for 2 seconds then slower. – Brahmdeep Singh Jun 13 at 12:29
• and how to make the wire straight before it changes to wave like form – Brahmdeep Singh Jun 13 at 12:50
• and How to make the end of the spline same as like starting point, so that waves are formed between 2 points. – Brahmdeep Singh Jun 13 at 12:53