# Perspective Carousel - Script to advance pane

**URL:** <https://forum.inductiveautomation.com/t/perspective-carousel-script-to-advance-pane/29104>\
**Category:** Ignition\
**Created:** [October 15, 2019, 7:21pm UTC](https://forum.inductiveautomation.com/t/perspective-carousel-script-to-advance-pane/29104 "2019-10-15T19:21:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkylep](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@dkylep](https://forum.inductiveautomation.com/u/dkylep)\
**Post date:** [October 15, 2019, 7:21pm UTC](https://forum.inductiveautomation.com/t/perspective-carousel-script-to-advance-pane/29104/1 "2019-10-15T19:21:05Z")

</div>

I have a simple carousel with 6 panes and it works fine. I would like to use it to show a sequence of events so I would like to write a script that will cause the carousel to advance to the next pane.

What I was hoping for is to see the animation when advancing to the next pane.

I made a simple button with the following onClick script. It does change the pane, but doesn’t actually show the animation between panes.

```auto
	activePane = self.getSibling("Carousel").props.activePane
	paneLegnth = len(self.getSibling("Carousel").props.views)-1

	if(activePane<paneLegnth):
		self.getSibling("Carousel").props.activePane=activePane+1

```

If I click on the carousel dots or arrows it advances to the next pane and shows the animation.

Is there a script that can be used to advance to the next pane and show the animation??

---

<div class="post-metadata">

**Author:** ![kyle.demerath](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kyle.demerath](https://forum.inductiveautomation.com/u/kyle.demerath)\
**Post date:** [December 27, 2019, 7:13pm UTC](https://forum.inductiveautomation.com/t/perspective-carousel-script-to-advance-pane/29104/2 "2019-12-27T19:13:59Z")

</div>

I would also find this useful, did you ever find a solution?

---

<div class="post-metadata">

**Author:** ![dkylep](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@dkylep](https://forum.inductiveautomation.com/u/dkylep)\
**Post date:** [December 27, 2019, 8:27pm UTC](https://forum.inductiveautomation.com/t/perspective-carousel-script-to-advance-pane/29104/3 "2019-12-27T20:27:08Z")

</div>

No. Started using the Perspective View Canvas instead.

> [@\[Feedback\] Perspective View Canvas](http://forum.inductiveautomation.com/t/feedback-perspective-view-canvas/29464):
>
> Overview Starting with the 8.0.6 nightly from today, we’ve introduced a new Perspective component: the View Canvas. The View Canvas allows the user to embedded multiple views in a coordinate based canvas. Think of it as a coordinate-y version of the flex repeater. The View Canvas also allows for smooth transitioning of views through CSS transitions. Feel free to post comments, questions, suggestions here. Properties instances: Array\<ViewInstanceProps\> - Array of view config objects positi…
