Source code for reapy.core.reaper.ui

"""User interface-related functions."""

import reapy
import reapy.reascript_api as RPR


[docs]def get_color_theme(): """ Return path to last color theme file. Returns ------- color_theme : str Path to last color theme file. """ return RPR.GetLastColorThemeFile()
[docs]def get_leftmost_track_in_mixer(): """Return leftmost track in mixer.""" return reapy.Track(RPR.GetMixerScroll())
[docs]def set_color_theme(path): """ Set REAPER color theme. Parameters ---------- path : str Path to color theme file. """ RPR.OpenColorThemeFile(path)
[docs]def set_leftmost_track_in_mixer(track): """Set leftmost track in mixer. The actual leftmost track in mixer might be different after calling if there is not enough tracks to the right of the specified track. Parameters ---------- track : Track Track to set as leftmost track in mixer. """ RPR.SetMixerScroll(track.id)