Session box position resets to top left after changing modes

1.09K viewsCSS Bugs
0

Hi John,

My script has a session box which I move around throughout the set.

When switching modes and switching back (I set up a momentary shift button) the session box position resets to the top left.

This is troubling because a lot of my controls are relative to the session box. Any ideas?

I am also wondering if it’s possible to have the same session box present in two modes, or at least have 2 that are linked.

I use my “shift” button to give my mute buttons the secondary function of being track selectors (done with Track -> Device -> Select device) so I can do specific track actions but can’t find any way to link my session box in the “shift” mode to the same position as the session box in my “base” default mode.

Would love to hear your thoughts.

admin Changed status to publish May 22, 2024
Attached Files:
0

Hey,

This should work and it’s 3 pretty simple changes in your script .py file.
1 In the method def __init__
Add these 2 lines (make sure they are above ‘self.mode_list’) :
self.current_track_offset = 0
self.current_scene_offset = 0

2 In the method: def session_box
edit the line: ‘self._session.set_offsets’
So that it is:
self._session.set_offsets(self.current_track_offset, self.current_scene_offset)

3 In the method: def remove_session_box
Add 2 lines:
self.current_track_offset = self._session._track_offset
self.current_scene_offset = self._session._scene_offset

See the attached images

admin Changed status to publish May 22, 2024
You are viewing 1 out of 8 answers, click here to view all answers.