- Script Code -
dofile(reaper.AZ_GetLuaInitPath())
require("reaper_AZSTOKE_SILVER")
require("reaper_AZSTOKE_GOLD")
if (reaper.AZ_Wwise_Connect("127.0.0.1",8080)) then
objectList,numObjects = reaper.AZ_Wwise_GetSelectedObjectList()
for i,value in pairs(objectList) do
name = reaper.AZ_DeleteBlankString(value.Name)
name = reaper.AZ_ReplaceSearchString(name,"AZ","AZSTOKE")
reaper.AZ_Wwise_SetName(value.ID,name)
end
reaper.AZ_Wwise_Disconnect()
end
- Warm Up -
- The file you want to rename is implemented in Wwise
- Select the part you want to change
- Script Detail -
dofile(reaper.AZ_GetLuaInitPath())
require("reaper_AZSTOKE_SILVER")
require("reaper_AZSTOKE_GOLD")
・Enable SILVER and GOLD APIs
if (reaper.AZ_Wwise_Connect("127.0.0.1",8080)) then
・Execute Wwise connect and when it connects, execute the if statement
objectList,numObjects = reaper.AZ_Wwise_GetSelectedObjectList()
・Get the selected object (array) and assign it to objectList
for i,value in pairs(objectList) do
・Supports For loop for objectList
name = reaper.AZ_DeleteBlankString(value.Name)
・Remove spaces from the names you get
name = reaper.AZ_ReplaceSearchString(name,"AZ","AZSTOKE")
・Replace the characters AZ with AZSTOKE
reaper.AZ_Wwise_SetName(value.ID,name)
・Finally, apply the modified string to the object.
end
reaper.AZ_Wwise_Disconnect()
・Finish Connecting Wwise
end