I do a lightpainting video on After Effects (CS6 here) where I duplicate my layert to create continuous lines based on a moving light. I have a lot of comps to do and many layers to duplicate, then I search a solution to avoid this boring task…

If you knows a script or something else which **duplicates a layer X times and moves it 1 frame everytime** (like stairs), it would be very welcomed!

Here is a screenshot of the current (but working) solution, by hand:

![](https://i.stack.imgur.com/aEbOv.jpg)