scroll_clip and zoom_clip not working
Posted: Tue Feb 14, 2023 11:57 pm
Hi,
I have very nicely working script for the MackieC4 (https://github.com/markusschloesser/MackieC4_P3/), but wanted to add scrolling and zooming the clip in Clip/Detail view with an encoder.
Now, zooming and/or scrolling works fine in Session/Arrange view with
But using
Does not work, even though IMHO it should. I found a couple of examples of code which are done similarly, all for Maschine .
1. Can anyone confirm, that scrolling clips in Clip/Detail view works with Maschine?
2. Maybe someone (from Ableton?) could point me in the right direction?
3. Is the sub-view still supported for scrolling or zooming?
Thanks!
I have very nicely working script for the MackieC4 (https://github.com/markusschloesser/MackieC4_P3/), but wanted to add scrolling and zooming the clip in Clip/Detail view with an encoder.
Now, zooming and/or scrolling works fine in Session/Arrange view with
Code: Select all
def zoom_or_scroll(self, cc_value):
""" Scroll in Session view or Zoom in Arrange view with vpot_rotation encoder rotation"""
nav = Live.Application.Application.View.NavDirection
if cc_value >= 64:
self.application().view.zoom_view(nav.left, '', self.alt_is_pressed())
if cc_value <= 64:
self.application().view.zoom_view(nav.right, '', self.alt_is_pressed())
Code: Select all
def scroll_clip(self, cc_value): # todo WIP
nav = Live.Application.Application.View.NavDirection
if cc_value >= 64:
if not self.application().view.is_view_visible('Detail/Clip'):
self.application().view.focus_view('Detail/Clip')
self.application().view.scroll_view(nav.left, 'Detail/Clip', False)
if cc_value <= 64:
if not self.application().view.is_view_visible('Detail/Clip'):
self.application().view.focus_view('Detail/Clip')
self.application().view.scroll_view(nav.right,'Detail/Clip', False)
def zoom_clip(self, cc_value): # todo WIP
nav = Live.Application.Application.View.NavDirection
if cc_value >= 64:
if not self.application().view.is_view_visible('Detail/Clip'):
self.application().view.focus_view('Detail/Clip')
self.application().view.zoom_view(nav.left, 'Detail/Clip', False)
if cc_value <= 64:
if not self.application().view.is_view_visible('Detail/Clip'):
self.application().view.focus_view('Detail/Clip')
self.application().view.zoom_view(nav.right,'Detail/Clip', False)
Code: Select all
self.application().view.scroll_view(scroll, 'Detail/Clip', False)
1. Can anyone confirm, that scrolling clips in Clip/Detail view works with Maschine?
2. Maybe someone (from Ableton?) could point me in the right direction?
3. Is the sub-view still supported for scrolling or zooming?
Thanks!