# Is it possible to have static Meshes share the same Timeline but different play rate?

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-have-static-meshes-share-the-same-timeline-but-different-play-rate/719717>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [December 2, 2022, 2:43am UTC](https://forums.unrealengine.com/t/is-it-possible-to-have-static-meshes-share-the-same-timeline-but-different-play-rate/719717 "2022-12-02T02:43:23Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![YTCK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YTCK](https://forums.unrealengine.com/u/YTCK)\
**Post date:** [December 2, 2022, 2:43am UTC](https://forums.unrealengine.com/t/is-it-possible-to-have-static-meshes-share-the-same-timeline-but-different-play-rate/719717/1 "2022-12-02T02:43:23Z")

</div>

Hi everyone,

Assume I have 8 static meshes, and they are separated into 3 different groups. They all need to do something with the same timeline but at different times. You may see the picture below for more detail.

 ![ShareTimeline](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/5/665745fd45f19eb3e7ec9d015b3a53b1abd88ab6.png)

However, I encountered some issues.  
I tried to duplicate the timeline. However, whenever I duplicate the timeline, a new one is created. I don’t want to manually set the timeline again. That is labor intensive.

I know there is a set play rate node that allows users to alter the play rate of the timeline. Is it possible to start the 2nd action before the 1st action ends?

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [December 2, 2022, 2:59am UTC](https://forums.unrealengine.com/t/is-it-possible-to-have-static-meshes-share-the-same-timeline-but-different-play-rate/719717/2 "2022-12-02T02:59:47Z")

</div>

Hey YTCK! Welcome to the forums!

For this, could you possibly just use 3 separate tracks and 3 separate output within the timeline, and just put the first key in each line where you’d like the other static meshes to start?

---

<div class="post-metadata">

**Author:** ![sshiny](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sshiny](https://forums.unrealengine.com/u/sshiny)\
**Post date:** [December 2, 2022, 3:11am UTC](https://forums.unrealengine.com/t/is-it-possible-to-have-static-meshes-share-the-same-timeline-but-different-play-rate/719717/3 "2022-12-02T03:11:01Z")

</div>

> [@YTCK](#):
>
> I tried to duplicate the timeline. However, whenever I duplicate the timeline, a new one is created. I don’t want to manually set the timeline again. That is labor intensive.
> 
> I know there is a set play rate node that allows users to alter the play rate of the timeline. Is it possible to start the 2nd action before the 1st action ends

create a timeline , then add two key create a float curve, one key value is 0 , another is 1 :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/e/91ea1d6fedc998475934bcd6a7491bf8181f5a3a.png)  
then you can do this , for example you timeline have 5s, in 4s the float curve value maybe 0.8, so you can create you logic like:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/7/f17d811000b842433ab668099c67558c8b9209e3.png)

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [December 2, 2022, 2:29pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-have-static-meshes-share-the-same-timeline-but-different-play-rate/719717/4 "2022-12-02T14:29:34Z")

</div>

Hey again @YTCK!

I’m gonna show you what I was talking about.

So this is what the timeline will look like. You can add multiple outputs to the timeline, and then have a different float output for each. Here I have ABC, DEF, GH on separate floats going from 0 to 1 at different times. Hope you can use this to get what you’re going for!

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/c/6fc1849d0c9a8def5f051e5d74f6b4c15e7b1a48.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/2/2d282fe5e06055f39a21d2b9cfb9ee4edb449267.png)

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [December 2, 2022, 3:13pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-have-static-meshes-share-the-same-timeline-but-different-play-rate/719717/5 "2022-12-02T15:13:15Z")

</div>

Hi Mind-Brain

Do you know if there is any way to use the curve without the timeline?

It is that inside the components the timelines cannot be used…

I had to simulate one by the hard way…

 ![11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/e/cbe52a2d1f116d9ecee844f84be7fc7790f99505.jpeg)

I couldn’t find any other way to do it.

Maybe you know a way to use the curves inside the components…

thx u so much!!

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [December 2, 2022, 3:21pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-have-static-meshes-share-the-same-timeline-but-different-play-rate/719717/6 "2022-12-02T15:21:36Z")

</div>

Whoa, nice blueprint math there Ivan3z!

But no, can’t use a timeline inside a component, BUT on the actor it’s attached to you can run a timeline, and set the value on the component from there. Just drop the component on the actor’s event graph and set the value 😉

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [December 2, 2022, 3:28pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-have-static-meshes-share-the-same-timeline-but-different-play-rate/719717/7 "2022-12-02T15:28:32Z")

</div>

Ok, I’ll do that if I have to… I really try to make my components with the max abstraction level as possible. It’s a pity not being able to use the curves.

Thank you very much MainBrain!! 💖

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [December 2, 2022, 4:15pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-have-static-meshes-share-the-same-timeline-but-different-play-rate/719717/8 "2022-12-02T16:15:53Z")

</div>

You could use timers inside of components with an update function and take in a curve but in c++. Not sure if it’s possible in bp.

variables in header

```auto

	float passedTime;
	UPROPERTY(editAnywhere, BlueprintReadWrite)
		class UCurveFloat* TimelineCurve;
	
	UPROPERTY(editAnywhere, BlueprintReadWrite)
		class UTimelineComponent* MyTimeline;
	
	FOnTimelineFloat InterpFunction{};

	UFUNCTION()
		void TimelineUpdate(float val);

```

in cpp

include at top

```auto
#include "TimerManager.h"
#include "Components/TimelineComponent.h" 
#include "Curves/CurveFloat.h" 

```

in constructor (CDO)

```auto
UMySceneComponent::UMySceneComponent()
{
	TimelineCurve = CreateDefaultSubobject<UCurveFloat>(TEXT("Timeline Curve"));		
	MyTimeline = CreateDefaultSubobject<UTimelineComponent>(TEXT("Timeline"));		
}

```

in begin play

```auto
void UMySceneComponent::BeginPlay()
{
if (TimelineCurve != nullptr) {
		InterpFunction.BindUFunction(this, FName{ TEXT("TimelineUpdate") });
		MyTimeline->AddInterpFloat(TimelineCurve, InterpFunction, FName{ TEXT("doUpdate") });
	}
	MyTimeline->SetLooping(true);
	MyTimeline->SetPlayRate(1);
	MyTimeline->SetTimelineLengthMode(TL_LastKeyFrame);
	MyTimeline->PlayFromStart();
}

```

and add your update function

```auto
void UMySceneComponent::TimelineUpdate(float val) {		
 // do something
}

```

---

<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:** [December 2, 2022, 4:21pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-have-static-meshes-share-the-same-timeline-but-different-play-rate/719717/9 "2022-12-02T16:21:29Z")

</div>

> [@YTCK](#):
>
> I know there is a set play rate node that allows users to alter the play rate of the timeline. Is it possible to start the 2nd action before the 1st action ends?

Also, timelines support vector tracks:

> [@How to loop through different parts of a door blueprint smoothly?](https://forums.unrealengine.com/t/how-to-loop-through-different-parts-of-a-door-blueprint-smoothly/431075/3):
>
> You could also get a bit cheeky and use a vector for the Alpha value and split it, giving you the opportunity to move multiple objects simultaneously using just a single vector track: [[Image from Gyazo]](https://gyazo.com/c6e2b0cac670a0012d4f392a08f3b514) With each track you can control up to 3 additional elements. You could even combine this method with the re-usability suggestion from my first post but then it might be hard to read and debug. Still, beats 10 timelines. Good luck!

3x static meshes, single timeline, single track. Each mesh does its own thing. And timelines can load a curve dynamically too.

> You could use timers inside of components with an update function and take in a curve

Speaking of which, sampling a curve with a timer inside a component is a thing as well.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [December 2, 2022, 4:51pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-have-static-meshes-share-the-same-timeline-but-different-play-rate/719717/10 "2022-12-02T16:51:24Z")

</div>

Thank you very much 3DRaven

I have taken screenshots of this.  
Sooner or later I will have to convert my project to C++.

I know C++ well. But I started with BluePrints because I thought that this way I would learn to use Unreal faster. I think I did well because there is a lot to learn. I think I’ve been learning unreal for about 6 months now… I’m a complete newbie XD

I really appreciate your help!! 💖
