diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2017-08-25 09:01:57 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2017-08-25 09:01:57 -0500 |
commit | d3bdad49271414c5860d1d060f66257cabfa700e (patch) | |
tree | c7da3999181763640cbea5b2d9bb6e434b9f96f7 /scripts/template_band.lua | |
parent | e7473c4c52ac43c6a6c00504b770daa04bb2b78e (diff) |
Templates: attempt to set ruler and clock visibility. Not working.
Diffstat (limited to 'scripts/template_band.lua')
-rw-r--r-- | scripts/template_band.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/template_band.lua b/scripts/template_band.lua index 8b8c5dad1d..88942bd027 100644 --- a/scripts/template_band.lua +++ b/scripts/template_band.lua @@ -31,6 +31,20 @@ end function factory (params) return function () + --at session load, params will be empty. in this case we can do things that we -only- want to do if this is a new session + if (not params) then + Editor:set_toggleaction ("Rulers", "toggle-tempo-ruler", 1) + Editor:set_toggleaction ("Rulers", "toggle-meter-ruler", 1) + + Editor:set_toggleaction ("Transport", "primary-clock-bbt", 1) + Editor:set_toggleaction ("Transport", "secondary-clock-off", 1) + + Editor:set_toggleaction ("Rulers", "toggle-minsec-ruler", 0) + Editor:set_toggleaction ("Rulers", "toggle-samples-ruler", 0) + Editor:set_toggleaction ("Rulers", "toggle-bbt-ruler", 1) + end + + local p = params or route_setup () local insert_at = p["insert_at"] or ARDOUR.PresentationInfo.max_order |