Update Lua script descriptions, rename some scripts

This commit is contained in:
Robin Gareus 2020-04-24 05:47:02 +02:00
parent fcf4e3e9eb
commit f72b05d3a5
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
25 changed files with 24 additions and 29 deletions

View file

@ -0,0 +1,28 @@
ardour {
["type"] = "EditorHook",
name = "Make all Regions Transparent",
author = "Ardour Lua Task Force",
description = "While the transport is looping, all regions become transparent.",
}
function signals ()
return LuaSignal.Set():add (
{
[LuaSignal.TransportStateChange] = true,
[LuaSignal.TransportLooped] = true,
}
)
end
function factory ()
return function (signal, ref, ...)
local all_regions = ARDOUR.RegionFactory.regions()
for _, r in all_regions:iter() do
local ar = r:to_audioregion ();
if ar:isnil () then goto next end
if ar:opaque () then
ar:set_opaque (false)
end
::next::
end
end end