Change between two tabs every 30 seconds

I need to automatically change between 2 tabs in perspective.
Can someone give me some ideas on how to do this.

Thanks

Binding props.currentTabIndex to an expression should work:

floor(getSecond(now())/30)
2 Likes

Thanks for the help.

Works perfect

Can you use the same expression for 4 tabs?

floor(
  (now(1000) / 3000)        // 3000 ms on each tab
  % len({this.props.tabs})  // modulo operator
)

This will make editing the tab container almost impossible. To fix that, right-click on the binding and disable during the edit. You would need to remember to re-enable when you're finished editing.