top of page

4

Track

AZSTOKE_TrackNameIncludeStringsSoloSetting

Set track name to Solo when matching a specified string

RANK

os = reaper.GetOS()

if "Win" == string.match(os,"(Win)") then

   package.cpath = package.cpath .. ";"..reaper.GetResourcePath() .."/UserPlugins/?.dll"

else

   package.cpath = package.cpath .. ";"..reaper.GetResourcePath() .."/UserPlugins/?.dylib"

end

require("reaper_AZSTOKE_SILVER")


function Msg(param)

   reaper.ShowConsoleMsg(tostring(param).."\n")

end


soloIncludeString = "_en"


retval,trackList = AZ_SILVER.AZ_GetTrackItemList(0)

reaper.AZ_SetTrackAllSoloOFF(0)


for i, value in pairs(trackList) do

    _,name = reaper.AZ_GetTrackItemName(value)

    _,check = reaper.AZ_CheckIncludeString(name,soloIncludeString)

    if check == true then

       reaper.AZ_SetTrackItemSolo(value,true)

    end

end

os = reaper.GetOS()

if "Win" == string.match(os,"(Win)") then

package.cpath = package.cpath .. "; "..reaper.GetResourcePath() .."/UserPlugins/?.dll"

else

package.cpath = package.cpath .. "; "..reaper.GetResourcePath() .."/UserPlugins/?.dylib"

end

require("reaper_AZSTOKE_SILVER")


・Make Silver API available


function Msg(param)

reaper.ShowConsoleMsg(tostring(param).."\n")

end


- Provides a console output function for debugging


soloIncludeString = "_en"


・Set the partial match string to be soloed and assign it to soloIncludeString


retval,trackList = AZ_SILVER.AZ_GetTrackItemList(0)


- Assign all tracks in the specified project to the trackList array


reaper.AZ_SetTrackAllSoloOFF(0)


- Set all solos to OFF


for i, value in pairs(trackList) do


・For loop for the trackList array


_,name = reaper.AZ_GetTrackItemName(value)


-Get the name of each track and assign it to name


_,check = reaper.AZ_CheckIncludeString(name,soloIncludeString)


・Check if name contains soloIncludeString and assign bool to check


if check then


・If check is true, execute the following


reaper.AZ_SetTrackItemSolo(value,true)


・Set solo to tracks that pass the check


end

end

To use the API, you need to sign up for a plan.

Download the dedicated API

need to do it.

*SILVER is scheduled to be released in May.

Naming the track

*Please understand the partial match range and name accordingly.

- Script Code -
- Script Image -
- Warm Up -
- Script Detail -
- API -

LUA

​ReaScript File Download 👇

* A dedicated API is required to run this

- Script Image -
bottom of page