# Flipbook Material Clamp Anim

**URL:** <https://forums.unrealengine.com/t/flipbook-material-clamp-anim/412679>\
**Category:** Asset Creation\
**Tags:** flipbook, unreal-engine, clamp, question\
**Created:** [December 19, 2017, 6:57pm UTC](https://forums.unrealengine.com/t/flipbook-material-clamp-anim/412679 "2017-12-19T18:57:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpavlovich](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mpavlovich](https://forums.unrealengine.com/u/mpavlovich)\
**Post date:** [December 19, 2017, 6:57pm UTC](https://forums.unrealengine.com/t/flipbook-material-clamp-anim/412679/1 "2017-12-19T18:57:08Z")

</div>

I’m using a simple FlipBook material driven by my ammo count to display “special” numbers, and it works great, except when the magazine is full, it defaults to a “0” value, so it starts at “00”, then jumps to 14, 13, 12, etc…back down to 00.

Reading the Clamp Anim tooltip, with a full magazine (value of 1), “A frac operation is applied to the animation phase. This causes a value of exactly 1 in the animation phase input to return 0.” So, the flipbook is working as intended. It continues “Enabling this feature will clamp the animation phase value from 0 to .9999 which avoids the issue”.

I think enabling this feature will fix my problem, but I’m not sure I’m enabling this feature correctly (if I am, it’s not solving the problem). Diving into the FlipBook node I see that a StaticBool is plugged into Clamp Anim; setting this to True doesn’t fix the problem (nor does plugging in a Static Bool set to True plugged into the Clamp Anim FlipBook).

Is there another method to enable this feature (or am I trying to solve this problem incorrectly)?

 ![224439-flipbookclampanim.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/2/f52b74e60131b316a50ad50add7418128c5b7930.png)

![flipbook_digits.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/3/a3ea7aafaf40ea86f4e0cd801b5ee3517231b05e.png)

---

<div class="post-metadata">

**Author:** ![Yandayixia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yandayixia](https://forums.unrealengine.com/u/Yandayixia)\
**Post date:** [July 22, 2019, 8:40am UTC](https://forums.unrealengine.com/t/flipbook-material-clamp-anim/412679/2 "2019-07-22T08:40:34Z")

</div>

Was looking at a simliar play animation only once issue.

If you use a static bool as input, it will clamp it so the animation plays exactly once.

Here is the reference:  
[https://forums.unrealengine.com/development-discussion/rendering/1366275-help-how-to-stop-looping-flipbook-materials](https://forums.unrealengine.com/development-discussion/rendering/1366275-help-how-to-stop-looping-flipbook-materials)
