# Space Switch Menu returns error

**URL:** <https://kangaroobuilder.discourse.group/t/space-switch-menu-returns-error/36>\
**Category:** Bug Report\
**Created:** [September 5, 2025, 6:22pm UTC](https://kangaroobuilder.discourse.group/t/space-switch-menu-returns-error/36 "2025-09-05T18:22:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![StaticRaven](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@StaticRaven](https://kangaroobuilder.discourse.group/u/StaticRaven)\
**Post date:** [September 5, 2025, 6:22pm UTC](https://kangaroobuilder.discourse.group/t/space-switch-menu-returns-error/36/1 "2025-09-05T18:22:43Z")

</div>

```auto
I get this error when I run the space switch menu. Only happens sometimes, not always. Mainly when there is no animation. Does it need animation?

# Traceback (most recent call last):
# File "C:\Kangaroo\scripts\kangarooAnimation\KangarooMatchTools.py", line 1090, in _switchTo
# cmds.currentTime(fAllTimes[0])
# IndexError: list index out of range

```

---

<div class="post-metadata">

**Author:** ![ThomasBittner](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@ThomasBittner](https://kangaroobuilder.discourse.group/u/ThomasBittner)\
**Post date:** [September 6, 2025, 5:32am UTC](https://kangaroobuilder.discourse.group/t/space-switch-menu-returns-error/36/2 "2025-09-06T05:32:40Z")

</div>

Thanks for pointing that out!

So that happens just when you do Anim or Bake, right? That needs keys. But it’s true that it would be nice to also work if there are no keys.

We’ll get that fixed in the next version. In the meantime you can also just write

```auto
if len(fAllTimes):

```

before that 1090 line he errors

---

<div class="post-metadata">

**Author:** ![StaticRaven](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@StaticRaven](https://kangaroobuilder.discourse.group/u/StaticRaven)\
**Post date:** [September 29, 2025, 5:58pm UTC](https://kangaroobuilder.discourse.group/t/space-switch-menu-returns-error/36/3 "2025-09-29T17:58:28Z")

</div>

Thank youuuu

Yes, only happens on Anim and Bake

Is no problem, we can use Pose. We can wait for the next version with this
