clyphx-live11 icon indicating copy to clipboard operation
clyphx-live11 copied to clipboard

Update selected track within a action list

Open daniellumertz opened this issue 3 years ago • 6 comments

So using action like

RIGHT ; all/arm off ; sel/arm on Makes a problem since RIGHT changes which track is selected and sel/arm on will get the previous selected track not the new selected at the moment . I think this works at clyp x pro in 10....

Thanks for porting it to py3 and ableton 11 by the way....

daniellumertz avatar Jul 26 '21 06:07 daniellumertz

Idk much about how the Live API works but seems it needs to call a update ? in ClyphXTrackActions.py

    def set_selection(self, track, xclip, ident, args):
        """ Sets track/slot selection """
        self.song().view.selected_track = track
        if track in self.song().tracks:
            if args:
                try:
                    self.song().view.selected_scene = list(self.song().scenes)[int(args.strip())-1]
                except: pass
            else:
                if track.playing_slot_index >= 0:
                    self.song().view.selected_scene = list(self.song().scenes)[track.playing_slot_index]

I could try to change, I know a little on python, but I have so many doubts I wouldn't know where to start....

daniellumertz avatar Jul 26 '21 18:07 daniellumertz

Many thanks for the bug report! On which Live version did you test? I'll take a look at this shortly.

-- Ludo

https://drolez.com/blog/ - Music and Tech Blog

ldrolez avatar Jul 27 '21 10:07 ldrolez

Hey thx for the reply I tested in Ableton 11 triggering it via controller

daniellumertz avatar Jul 27 '21 14:07 daniellumertz

other thing that IDK if is the intended behavior: left and right change the behavior depending the windows focus. so in arrange it moves the edit cursor pos. And in section view it changes the track focus.

daniellumertz avatar Jul 28 '21 19:07 daniellumertz

Could you confirm that it works with the Pro version?

ldrolez avatar Jul 29 '21 11:07 ldrolez

You can also do this with variables: One clip with [] var=1 The RIGHT clip [] var=(%var%+1) ; %var%/SEL

ldrolez avatar Jul 29 '21 11:07 ldrolez