Get relevant anim time remaining not working with random sequence player

Hello,

it seems that the “Get relevant anim time remaining” node is not working with random sequence player in states.
Seems like in this case 0 is always returned.

It’s possible the node was not meant for this kind of use, but in that case it would be greatly appreciated if “Random Sequence Player” node would output time remaining of the currently played animation (or the one with highest blend ratio in a case blend between random animations is happening) so that the “Get relevant anim time remaining” would work correctly.

Thanks

Hi GiM,

From my testing, Random Sequence isn’t really meant for this functionality. It’s meant to loop indefinitely with the animations set up in the node.

What I did was a Blend Poses by Int node. With a RandomInt Variable that is set to a random int using the StateMachine Transition Notifies:

112615-transitionnotifications.png

112616-transitionnotifyrandomint.png

1 Like

Hi ,

thanks for taking the time for the answer. I think I understand and your solution is certainly a way to go.

Still it feels like the Random Sequence Player is often too convenient for many situations (playing random idle animations), but at some point when you are leaving a state it would be very useful to get what is the remaining time of currently playing animation in the Random Sequence Player.

I have no idea about the technical background or design choices in RSP, but even looped animation has it’s real end, and just being able to get that kind of time remaining would be great.

Hey ,

As I don’t think it’s actually a bug, but would be useful, I’ve entered a feature request as UE-38052

Is this something that will be added at some point? I am also looking for this feature.

Also needed here. This function is very useful for not having “time remaining”. Definitely a feature request (ignored since 2016 as I can see)