# How to animate perpendicular strips moving along a cable? (visualizing DC electric current)

I'm a newbie to Blender. I've been doing mediocre solid modeling (using Alibre) for years, so creating models to import isn't a big problem for me. But I'm wanting to learn to do a very specific simulation of electrical current flowing using Blender. This animator did a wonderful job of current flow simulation tracking an electrical path (wire) at the 0.48 to 1:10 point:

https://youtu.be/CWulQ1ZSE3c?t=48s

The white cylindrical current objects track the path (wire) even when the wires move as the switch is put in place.

I've watched some tutorials on:

I'm guessing there may be multiple ways to perform this current flow simulation. I'm finding Blender so powerful but also feature rich - feature rich enough to be confusing and difficult to learn. Anyone have ideas on tutorials i should watch to help me get to this electrical current flow faster? I really appreciate any help! Lane

• Create a bi-color cylinder, give it an Array modifier and a Curve modifier, make it move on the right axis so that it moves along the curve. To move the curve you can hook the vertices of the curve for example. – moonboots Mar 26 at 18:46
• Thanks Moonboots! I'm not sure how to do that, but i can try to learn how. any good tutorials you know of to show me how? Lane – Lane_animate Mar 26 at 18:48
• Also, how do i set up the multiple cylinders to track together? does that have to happen in the dope sheet? – Lane_animate Mar 26 at 18:48
• take a look at this kind of tutorial: youtube.com/watch?v=_3NFtRBDCV0 – moonboots Mar 26 at 18:55
• Can you add a screenshot from the linked video to your question next time, please? If the video goes offline, any future readers will have no idea what you're referring to. – Blunder Mar 26 at 19:16

Enter #frame + 12 in the purple value field to create the driver. 6 is the speed, and the +12 (=2x6) is needed for a continuous loop over all frames. 2 because it's bi-color. Switch the Add math node to Substract to reverse the direction.