Fellowing instructions found in a youtube tutorial, I managed to draw a slinky.
See my .blend
(note that I did not add the curve modifier as I want my slinky to be along an axis, see below).
Now, I'd like to animate it so I could illustrate how a longitudinal wave propagates (as show in this video). For simplicity, let's consider a sinusoidal wave: the displacement field is xi(x, t) = xi0 cos(2 pi f t - 2 pi x / lambda)
where f
is the frequency of the wave and lambda
is the wavelength (lambda f = v
where v
is the velocity of the wave).
My question is: how can I use Python to add keyframes so that the vertices of the lattice (and the slinky) are moved according to the displacement field?