Adding value based on variable to timeline

I have been following some tutorials in the UE4 YouTube section and decided to branch out a bit and do my own thing. I have created a class Blueprint for a sliding glass door and using that, I have told it which axis to move along based on its rotation. Now I would like to change the distance moved based on an editable input so that I can really use this anywhere in the level and have it move as much as I want it to.

Right now, I have the distance moved as the end value in a time line so that I can see it updating smoothly. I would like to know if there was a way to edit this end value using a variable. I know I can change the end time and all that but I am not sure how to change the values within the time line.

Not only would this allow me to change the distance it moves but also what direction it moves. Thanks in advance for any help.

So you want to move an object from point point a to point b using a timeline and you would like to pass the distance between a and b by parameter?

If I have undesrtand you right, what you could do is your curve timeline return always values between 0 and 1.0 (instead of 0 and distance). Then just scale the result by your distance.

Hi ReallyGoodPie,

If I understand correctly, you would like to have a changeable variable as the last point in the timeline so instead of having to make a new timeline every time you use the door in different parts of the level you could just change the variable to make the door move more or less. If that is what you want I don’t think you can do it because not only would you have to supply the value, you would also have to supply the time for each value as well.

I don’t think it’s possible to do what you wish. The easiest thing to do would be to just edit the timeline each Tim’s you duplicate it to suit.

With regards,
Zakman186

Well that sucks. It would be nice if we could have a node where we enter the values of the keyframe and have those values represented on the timeline.

I realize i’m necro’ing this post, but just wanted to confirm that this worked great.

With you timelime values between 0 and 1, take your update node and link with multiply node, then just use a getter node for your variable. Pass the result of the multiplication to your rotator.

Thanks