|
Post by simoninwonderland on Oct 27, 2019 14:42:20 GMT -5
Hi Community
I was wondering what Variable momentarily could show the current selected Arp-Style on the Push Display?
Thanks in advance for your help! Simon
|
|
|
Post by Stray on Oct 29, 2019 5:03:15 GMT -5
Sure and it'd basically be the same idea as your previous thread. So, something like this: %style% = song.view.selected_track.devices[0].parameters[4].name That would get the name of the 4th parameter of the 1st device on the selected track. You'd have to play around with the '4' there to find out where the parameter you're looking for is in the parameters list. That sort of thing is super simple in user actions, but that requires Python chops.
|
|
|
Post by simoninwonderland on Oct 30, 2019 7:05:06 GMT -5
Thank you so much Stray!!
The Parameter for Style is '1'. If I run the Variable it shows me a number i.E. for the 1st Style (Up) it displays '0.0', for the second Style (Down) '1.0' and so on. Is there a way to get the actual name instead of a number?
And: where can I learn Python? ;-)
|
|
|
Post by Stray on Oct 31, 2019 8:19:22 GMT -5
Not sure on that. Maybe try omitting name: %style% = song.view.selected_track.devices[0].parameters[4]
On learning Python, just Google it. There is tons and tons of free info, tutorials and courses on it online.
|
|
|
Post by simoninwonderland on Nov 1, 2019 6:52:48 GMT -5
This works perfectly! Thank you so much!
Could you recommend any website or tutorial for learning python?
|
|
|
Post by Stray on Nov 2, 2019 9:36:35 GMT -5
I haven’t used any that I could recommend honestly. Perhaps some other members could chime in here?
|
|