# Instancing multiple Timelines?

**URL:** <https://forums.unrealengine.com/t/instancing-multiple-timelines/495917>\
**Category:** Blueprint\
**Tags:** timeline, unreal-engine, UE4, Blueprint, UE4-27, question\
**Created:** [February 8, 2022, 11:42pm UTC](https://forums.unrealengine.com/t/instancing-multiple-timelines/495917 "2022-02-08T23:42:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spacemarine658](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spacemarine658/32/1194677_2.png) [@Spacemarine658](https://forums.unrealengine.com/u/Spacemarine658)\
**Post date:** [February 8, 2022, 11:42pm UTC](https://forums.unrealengine.com/t/instancing-multiple-timelines/495917/1 "2022-02-08T23:42:46Z")

</div>

Essentially is there a way to instance a Timeline as I want 126 different objects to run the same timeline rotation but offset with a delay. I could do it by hand like this but I’d prefer a more dynamic solution

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/4/21474b5b3426d5d368d9ea3b3c769fa417610ce3.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 9, 2022, 12:12am UTC](https://forums.unrealengine.com/t/instancing-multiple-timelines/495917/2 "2022-02-09T00:12:22Z")

</div>

Is the 1st object still rotating when the 2nd one starts to rotate? Perhaps we could use the same timeline but for another set of objects? Or there’s an overlap in rotation?

How is the sequence supposed to look like?

---

<div class="post-metadata">

**Author:** ![Spacemarine658](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spacemarine658/32/1194677_2.png) [@Spacemarine658](https://forums.unrealengine.com/u/Spacemarine658)\
**Post date:** [February 10, 2022, 12:47am UTC](https://forums.unrealengine.com/t/instancing-multiple-timelines/495917/4 "2022-02-10T00:47:37Z")

</div>

so yeah the first object is still rotating when the second starts essentially I’d like to be able to use a timeline for multiple objects but each object having an offset delay this is the final goal with my jank painful solution

[Video](https://streamable.com/qd288l)

---

<div class="post-metadata">

**Author:** ![TheFlyingEpergne](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/theflyingepergne/32/945825_2.png) [@TheFlyingEpergne](https://forums.unrealengine.com/u/TheFlyingEpergne)\
**Post date:** [September 9, 2022, 11:59pm UTC](https://forums.unrealengine.com/t/instancing-multiple-timelines/495917/5 "2022-09-09T23:59:17Z")

</div>

sorry to bump an old thread but could you share how you did this? really love that effect.

i’m trying to handle trains leaving a station after an allotted time using a single timeline but the timeline seems to only care about the first train in the station

---

<div class="post-metadata">

**Author:** ![Spacemarine658](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spacemarine658/32/1194677_2.png) [@Spacemarine658](https://forums.unrealengine.com/u/Spacemarine658)\
**Post date:** [September 10, 2022, 12:13am UTC](https://forums.unrealengine.com/t/instancing-multiple-timelines/495917/6 "2022-09-10T00:13:06Z")

</div>

Sure I’ll whip something up

---

<div class="post-metadata">

**Author:** ![Spacemarine658](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spacemarine658/32/1194677_2.png) [@Spacemarine658](https://forums.unrealengine.com/u/Spacemarine658)\
**Post date:** [September 10, 2022, 12:45am UTC](https://forums.unrealengine.com/t/instancing-multiple-timelines/495917/7 "2022-09-10T00:45:34Z")

</div>

this is not an optimized or even good solution (afaik) but it works and isn’t super awful for something rotating thousands of parts at run time

the open vents and close vents, custom events gets called by the player if finished is true

---

<div class="post-metadata">

**Author:** ![zeaf](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zeaf/32/1108035_2.png) [@zeaf](https://forums.unrealengine.com/u/zeaf)\
**Post date:** [September 10, 2022, 2:06pm UTC](https://forums.unrealengine.com/t/instancing-multiple-timelines/495917/8 "2022-09-10T14:06:34Z")

</div>

I came up with this:

> <https://gfycat.com/hatefulflashyfly>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/5/c0526485d729654a35229bfc24aabadeb916025a.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/e/30e79cb7b615a287870c79d20bc9c4654b0020d4.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/8/4f8bca11e293e71bad34c247244aa5704681a329.png)  
The sort function is from the free plugin [ArrayHelper](https://www.unrealengine.com/marketplace/en-US/product/array-helper-bp-library)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/a/9da2c54f42b3ca46a360cbff8343df6ed8067bdf.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/1/ef17570946bc6c78855671669419f358a079eab8.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/0/740337c2331e3c6047aa5e451241b7e06236248b.png)

One timeline that controls all the tiles at once. You might not need the GetOrder function, if your meshes are already in perfect order, but I had to do it in my test because they were kind of random. But it should be an one time call on begin play

Also I used a duplicate of the engine’s plane mesh for this, and moved its pivot to its side to be able to rotate around its edge, but your setup might be different, or you might have a different mesh, so you might have to adjust accordingly

---

<div class="post-metadata">

**Author:** ![Spacemarine658](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spacemarine658/32/1194677_2.png) [@Spacemarine658](https://forums.unrealengine.com/u/Spacemarine658)\
**Post date:** [September 10, 2022, 2:33pm UTC](https://forums.unrealengine.com/t/instancing-multiple-timelines/495917/9 "2022-09-10T14:33:29Z")

</div>

Dang that’s a pretty clean solution

---

<div class="post-metadata">

**Author:** ![Chacobo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chacobo](https://forums.unrealengine.com/u/Chacobo)\
**Post date:** [April 23, 2024, 12:26am UTC](https://forums.unrealengine.com/t/instancing-multiple-timelines/495917/10 "2024-04-23T00:26:49Z")

</div>

I’m dying to see what was the result but the GIF is dead! Could you possibly reupload it? Thanks!
