# Get the total number of Carousel views

**URL:** <https://forum.inductiveautomation.com/t/get-the-total-number-of-carousel-views/104410>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 29, 2025, 2:36pm UTC](https://forum.inductiveautomation.com/t/get-the-total-number-of-carousel-views/104410 "2025-03-29T14:36:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve.nap](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@steve.nap](https://forum.inductiveautomation.com/u/steve.nap)\
**Post date:** [March 29, 2025, 2:36pm UTC](https://forum.inductiveautomation.com/t/get-the-total-number-of-carousel-views/104410/1 "2025-03-29T14:36:27Z")

</div>

Hi. How can I get total number of views in my carousel in a script? I tried wrapping it in len() or .length.

self.getSibling("Carousel").props.views (I need the length aka total # of views in the carousel)

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [March 29, 2025, 4:49pm UTC](https://forum.inductiveautomation.com/t/get-the-total-number-of-carousel-views/104410/2 "2025-03-29T16:49:25Z")

</div>

`len` should work. How did you try it exactly ?  
And what was the result ?

edit:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/2/a24e88f3ff55ed745d79ef134f7ad1f4faac139c.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/b/5b059cf752194f59420fb9b2cf5155e734cd28ce.png)

---

<div class="post-metadata">

**Author:** ![steve.nap](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@steve.nap](https://forum.inductiveautomation.com/u/steve.nap)\
**Post date:** [March 29, 2025, 5:36pm UTC](https://forum.inductiveautomation.com/t/get-the-total-number-of-carousel-views/104410/3 "2025-03-29T17:36:54Z")

</div>

Thank you very much. That worked perfectly. I am still learning and did not think of this. Greatly appreciated.
