🔥 Lifetime deal! Get Control Surface Studio for Just £67 👉 Click Here To Get It
Time left... mailtimers.com
⚠️ Lifetime licenses are ending soon, get yours before they're gone ⚠️
Your shopping cart is empty.

self. get_ selected_ device _num ("view. selected_track") returns -1 for first device in track

Submitted by slasi on Thu, 11/24/2022 - 21:33
slasi
Control Surface Studio User

I have very simple script that outputs the selected_device_num whenever a selected device changed listener fires (self.song().view.selected_track.view.add_selected_device_listener)

When I select the first device it returns -1 as the index instead of 0. The second device returns 1 as expected

Script is attached.

upload files: 
Topic Category: 

2 Responses

Comments

JohnC
Forum Admin
#1

This has now been fixed.
When the first device is selected it will return 0 instead of -1

This is an update on the server so no need to re-download the app, just click the 'install to ableton' button and the update will be included.

slasi
Control Surface Studio User
#2

Thanks for fixing this.