# Get Relevant Anim Time Returns FLOAT\_MAX

**URL:** <https://forums.unrealengine.com/t/get-relevant-anim-time-returns-float-max/373913>\
**Category:** Character & Animation\
**Tags:** unreal-engine, state-machines, transition, bug-report, question\
**Created:** [October 20, 2016, 1:58pm UTC](https://forums.unrealengine.com/t/get-relevant-anim-time-returns-float-max/373913 "2016-10-20T13:58:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_1d9c3aac](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1d9c3aac](https://forums.unrealengine.com/u/anonymous_user_1d9c3aac)\
**Post date:** [October 20, 2016, 1:58pm UTC](https://forums.unrealengine.com/t/get-relevant-anim-time-returns-float-max/373913/1 "2016-10-20T13:58:32Z")

</div>

I have a simple state machine defined, seen in this capture:

 ![111698-hit01.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/6/206f56cdce1d1a43e5b4ed5ef886d2f236558c46.jpeg)

One boolean decide for left/right, another for head (or other parts of the body, but I hit a bug, so they are not there yet).

This capture is [To Head L] → [From Left] transition rule, which works fine and returns me back to my original node on the state machine:

 ![111700-hit02.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/8/0f8dfebce4f0e13555ce201e24c368591a71f034.jpeg)

However, when I construct the same for [To Head R] → [From Right], the state never ends and animation continues in a loop. I get stuck at this point.

 ![111722-hit03.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/5/5359cf840a5977459d266d667adcc9992896e7ed.jpeg)

Strange thing is, if I delete the transition rules for this node and re-create them with same rules, this time To Head L part gets stuck.

“Get Relevant Anim Time Remaining (xxxx node)” works only for one state, and gives me either 0.0 or FLOAT MAX.

Here is one of the node detail:

 ![111723-hit04.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/e/18eaabb9f5aa301edce7838106daf4c414f8b720.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1d9c3aac](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1d9c3aac](https://forums.unrealengine.com/u/anonymous_user_1d9c3aac)\
**Post date:** [October 24, 2016, 7:27am UTC](https://forums.unrealengine.com/t/get-relevant-anim-time-returns-float-max/373913/2 "2016-10-24T07:27:34Z")

</div>

anybody? this is a breaking bug… most probably copy pasting and/or renaming the state that has a “relevant anim” breaks the code.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_280dd372](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_280dd372](https://forums.unrealengine.com/u/anonymous_user_280dd372)\
**Post date:** [October 26, 2016, 6:54pm UTC](https://forums.unrealengine.com/t/get-relevant-anim-time-returns-float-max/373913/3 "2016-10-26T18:54:39Z")

</div>

Hey emrahgunduz,

This might be easier to debug if I could see what’s happening for myself. Could you migrate your character to a blank test project and send it to me? You can either send a download link here or PM me a link.

I’m also curious why you’re doing “InRange” instead of just a less than comparison. I also suspect the fact that you’re using Time Remaining instead of Time Remaining Ratio, it is causing a conflict with the Blend time in your Blend Poses by Int node. We’ll see though.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1d9c3aac](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1d9c3aac](https://forums.unrealengine.com/u/anonymous_user_1d9c3aac)\
**Post date:** [October 27, 2016, 7:47am UTC](https://forums.unrealengine.com/t/get-relevant-anim-time-returns-float-max/373913/4 "2016-10-27T07:47:22Z")

</div>

Hi , I’ll create a demo project and send it to you as soon as possible. I’ve changed the current transition rules in the state machine cause of this problem, and need to finish it before doing anything else ☹

The “in range” usage was recommended on another thread in answers by a dev. It was something about Get Anim Time not working as expected and returning correct on the second tick not first. I thought this was the problem, but mine was different. I’m getting either 0 or fltmax all the time.

Time remaining, time remaining ratio… does not matter. “Get relevant” nodes all have the same problem in here.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_280dd372](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_280dd372](https://forums.unrealengine.com/u/anonymous_user_280dd372)\
**Post date:** [October 31, 2016, 7:46pm UTC](https://forums.unrealengine.com/t/get-relevant-anim-time-returns-float-max/373913/5 "2016-10-31T19:46:30Z")

</div>

Hey emrahgunduz,

I’m going to mark this as resolved for tracking until you can get back to this. Just respond to re-open it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a52a201a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a52a201a](https://forums.unrealengine.com/u/anonymous_user_a52a201a)\
**Post date:** [May 1, 2018, 10:17pm UTC](https://forums.unrealengine.com/t/get-relevant-anim-time-returns-float-max/373913/6 "2018-05-01T22:17:53Z")

</div>

I’m having the same issue, without the InRange. I’m using two blend by enum plugged on a Blend by bool. The transition rules attached to this state return the FLOAT\_MAX when attempting to use the Get Relevant Anim Time Remaining.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a52a201a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a52a201a](https://forums.unrealengine.com/u/anonymous_user_a52a201a)\
**Post date:** [May 1, 2018, 10:18pm UTC](https://forums.unrealengine.com/t/get-relevant-anim-time-returns-float-max/373913/7 "2018-05-01T22:18:05Z")

</div>

I’m having the same issue, without the InRange. I’m using two blend by enum plugged on a Blend by bool. The transition rules attached to this state return the FLOAT\_MAX when attempting to use the Get Relevant Anim Time Remaining.

---

<div class="post-metadata">

**Author:** ![Danistmein](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Danistmein](https://forums.unrealengine.com/u/Danistmein)\
**Post date:** [January 16, 2025, 7:00am UTC](https://forums.unrealengine.com/t/get-relevant-anim-time-returns-float-max/373913/8 "2025-01-16T07:00:24Z")

</div>

when I use blend poses this problem still exists. Get Relevant Anim Time Remaining (xxxx node) don’t return the proper animation sequence remaining time.
