Download

get the Time Remaining ratio of a "variable" animation

Hi,
I don’t know how to resolve this case.
I’ve an animation state which can use different animations using a variable. For that, i’ve open the pin “sequence” and i’ve passed my variable:
cd99efee175b2a24b8d8c49e5b8022ee87a52e23.png
So it functions.
But, i don’t know how to receive the remaining time of this animation.
Look at this:
a7f48018e03e721711f22e80a06d594a6525fbb3.png
The first node can’t be used because it’s not pointing to the good animation. The good animation is in variable “BPA Jump Anticipation”
So, i try to find a function to get time remaining, but 've only “Get Timer Remainging Time”
I try to use it, but output log says: “GetTimerRemainingTime passed a bad function() or object(blabla)”
But Blabla is the good animation… Must i create a timer for that ? And how ?

I asked the exact same question a little while ago. :slight_smile:

Apparently you can’t do this yet, it’s a known issue.

ok, thank you

hey guys, ran also into this problem today. even if this post is 4 years old. the solution you tried, we also came up with and figured out it doesnt work, cause of the same issue.
we used a workaround, that worked for us. iam sure you remember you can setup animation notifies. So make an Notify at the End at the animation.

For a blend it helps like this. For Character as example.
We have an Animation that we wanna automatic stop at its end (Waving Hands). simply create an boolean in character, cast from animbp to character and setup the animation blueprint boolean for your blend. call a function in character where you enable the boolean “isWavingHands” and then call the AnimNotifyEvent from Waving Hands insinde the AnimBp. Get a a reference to character and turn of Boolean “isWavingHands”.

sounds a bit complex, but if you familiar with casting from character to animbp, you should get the trick. otherwise ask. i hope it helps. :slight_smile: of course iam not sure, if exactly that is your problem.
but we had the issue that we had multie animations, but where not able to get “time remanining ratio” without setting up all animations in animbp manual.