1
$\begingroup$

Last time I asked how to make an animation that moves along the vertex, thankfully I learned how to use an animation node (How can I make an object move along the vertex of another object?),

But is there a way to make the animation below using the animation node?

ani

  • Each time the camera rotates along the vertex, the light source moves to the next vertex.
  • The camera repeats movement until the light source reaches all the vertices.

I'm a beginner and I don't know how to make it.

Thanks in advance!

$\endgroup$

1 Answer 1

1
$\begingroup$

you can use this node setup to achieve your goal:

enter image description here

Basically it is the same as last time, just a bit more math.

Instead of moving 1 step per frame, i use the modulo so that it repeats it pattern. e.g.

frame modulo 2
1    1
2    0
3    1
4    0
5    1
6    0

frame modulo 3
    1    1
    2    2
    3    0
    4    1
    5    2
    6    0

so basically modulo repeats counting from 0 to modulo value - 1 if modulo is an integer.

By this i got that repeating (neverending pattern).

for the direction of the sun i just used a track to constraint, which tracks to an empty on 0,0,0. Same with the camera, which tracks to suzanne.

enter image description here

$\endgroup$
2
  • 1
    $\begingroup$ This is exactly what i wanted!!!! Thank you very much! $\endgroup$
    – rrr
    Commented May 23, 2022 at 19:33
  • $\begingroup$ You are welcome $\endgroup$
    – Chris
    Commented May 23, 2022 at 19:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .