Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update selected track within a action list #10

Open
daniellumertz opened this issue Jul 26, 2021 · 6 comments
Open

Update selected track within a action list #10

daniellumertz opened this issue Jul 26, 2021 · 6 comments

Comments

@daniellumertz
Copy link

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
Copy link
Author

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....

@ldrolez
Copy link
Owner

ldrolez commented Jul 27, 2021 via email

@daniellumertz
Copy link
Author

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

@daniellumertz
Copy link
Author

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.

@ldrolez
Copy link
Owner

ldrolez commented Jul 29, 2021

Could you confirm that it works with the Pro version?

@ldrolez
Copy link
Owner

ldrolez commented Jul 29, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants