Add variables to Timeline?

Hi all,

Does anyone know if there is a way to add variables to a timeline? I’ve captured the scale of an actor at its full size, then set it to 0 on play, and I’m trying to add the objects scale size to a timeline to it looks smooth, but can’t figure how to add them into it… any help is appreciated!

Thanks

Cant do that. However why dont you simply make your timeline go from 0-1 and Multiply the Result that comes out by your Size variable =)

3 Likes

Whoa Thanks for the fast reply !

I’m not really sure how to do that, but could it still have a smooth effect like I was aiming for?

EDIT : Just added a few float values, and smoothed it out, great suggestion!

Thank you!

If your timeline runs from 0 to 1 you can make a Lerp with two values: a = your Variable1 and b = yourVariable2. Then simply plug your timeline outcome into the Lerp alpha slot to make it animate between a (= 0) and b (= 1).
Hope that helps.

1 Like

This worked perfectly.

To add an example to what is described above via Blueprints:

Here is a timeline that goes from 0 to 1 over 1 second

Here is a lerp where I am taking the starting value (in this case the Default Boom Arm Length) and applying a lerp to the max values (in this case the Sprint Boom Arm Length). Using the ouput from the Timeline to apply to the lerp.

2 Likes