I am not sure if I understand your question completely, but I have set up a reaction for following the highlighted track. I guess when you select a track it gets highlighted.
In this example, I have an 8 track Sessionbox and when I navigate to for example track 12, the Sessionbox follows so that track 12 will be the last one on my Sessionbox (so track 5 to 12 will be visible)
Listener is:
self.song().view.add_selected_track_listener -> (Live Object Model -> Song -> 'Selected Track' has changed)
Action is:
if self.get_selected_track_num()<7:
self.set_sessionbox_offsets(0, 0)
else:
self.set_sessionbox_offsets(self.get_selected_track_num()-7, 0)
Hope this is something that can help you get in the right direction.
Regards
hi 303_, So do I just paste that code into the custom field of the Action box, or do I need to create two separate actions and paste the relevant code in each one with the appropriate condition ?
Hi davlar,
Yes, you just paste that code into the custom field.
Adjust the number (here 7) to the number of tracks you have in your 'Session Box' minus 1! (I have an 8 track 'Session Box' so I have put 7 in my action)
Comments
Hello navfive,
I am not sure if I understand your question completely, but I have set up a reaction for following the highlighted track. I guess when you select a track it gets highlighted.
In this example, I have an 8 track Sessionbox and when I navigate to for example track 12, the Sessionbox follows so that track 12 will be the last one on my Sessionbox (so track 5 to 12 will be visible)
Listener is:
self.song().view.add_selected_track_listener -> (Live Object Model -> Song -> 'Selected Track' has changed)
Action is:
if self.get_selected_track_num()<7:
self.set_sessionbox_offsets(0, 0)
else:
self.set_sessionbox_offsets(self.get_selected_track_num()-7, 0)
Hope this is something that can help you get in the right direction.
Regards
hi 303_, So do I just paste that code into the custom field of the Action box, or do I need to create two separate actions and paste the relevant code in each one with the appropriate condition ?
Hi davlar,
Yes, you just paste that code into the custom field.
Adjust the number (here 7) to the number of tracks you have in your 'Session Box' minus 1! (I have an 8 track 'Session Box' so I have put 7 in my action)