summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2017-08-25 09:19:17 -0500
committerBen Loftis <ben@harrisonconsoles.com>2017-08-25 09:19:17 -0500
commit6e4c9490d44f19ab348cf2413276d7bff1ac0b54 (patch)
treedfabb5400c41c4cb46195a923e44c60ed0192dda /scripts
parentd3bdad49271414c5860d1d060f66257cabfa700e (diff)
Some fixes for ruler-visibility. Secondary-clock coming soon.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/template_band.lua16
1 files changed, 9 insertions, 7 deletions
diff --git a/scripts/template_band.lua b/scripts/template_band.lua
index 88942bd027..948b5dce92 100644
--- a/scripts/template_band.lua
+++ b/scripts/template_band.lua
@@ -33,15 +33,17 @@ 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 ("Rulers", "toggle-tempo-ruler", true)
+ Editor:set_toggleaction ("Rulers", "toggle-meter-ruler", true)
- Editor:set_toggleaction ("Transport", "primary-clock-bbt", 1)
- Editor:set_toggleaction ("Transport", "secondary-clock-off", 1)
+ Editor:access_action ("Transport", "primary-clock-bbt")
+ Editor:access_action ("Transport", "secondary-clock-off")
- Editor:set_toggleaction ("Rulers", "toggle-minsec-ruler", 0)
- Editor:set_toggleaction ("Rulers", "toggle-samples-ruler", 0)
- Editor:set_toggleaction ("Rulers", "toggle-bbt-ruler", 1)
+ Editor:set_toggleaction ("Rulers", "toggle-minsec-ruler", false)
+ Editor:set_toggleaction ("Rulers", "toggle-timecode-ruler", false)
+ Editor:set_toggleaction ("Rulers", "toggle-samples-ruler", false)
+
+ Editor:set_toggleaction ("Rulers", "toggle-bbt-ruler", true)
end