# Spline Loop Parameters

**URL:** https://forum.aousd.org/t/spline-loop-parameters/1759
**Category:** USD
**Created:** [August 9, 2024, 11:01pm UTC](https://forum.aousd.org/t/spline-loop-parameters/1759 "2024-08-09T23:01:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dhruvgovil](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.aousd.org/dhruvgovil/32/3_2.png) [@dhruvgovil](https://forum.aousd.org/u/dhruvgovil)
#### Post date: [August 9, 2024, 11:01pm UTC](https://forum.aousd.org/t/spline-loop-parameters/1759/1 "2024-08-09T23:01:04Z")

</div>

While I’m working on parsing the Spline code for the spec, I noticed that the number of pre and post loops are signed integers.

What does it mean to have a negative value here?

```auto
class TsLoopParams
{
public:
    TsTime protoStart = 0.0;
    TsTime protoEnd = 0.0;
    int32_t numPreLoops = 0;
    int32_t numPostLoops = 0;
    double valueOffset = 0.0;
}

```

---

<div class="post-metadata">

### Author: ![nporcino](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@nporcino](https://forum.aousd.org/u/nporcino)
#### Post date: [August 10, 2024, 12:27am UTC](https://forum.aousd.org/t/spline-loop-parameters/1759/2 "2024-08-10T00:27:19Z")

</div>

treat negative values as zero. This may change to uint32\_t in the future.

---

<div class="post-metadata">

### Author: ![dhruvgovil](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.aousd.org/dhruvgovil/32/3_2.png) [@dhruvgovil](https://forum.aousd.org/u/dhruvgovil)
#### Post date: [August 10, 2024, 12:34am UTC](https://forum.aousd.org/t/spline-loop-parameters/1759/3 "2024-08-10T00:34:27Z")

</div>

Thanks. That’s good to know.
