- API -
childObjList = reaper.AZ_Wwise_GetChildrenList(objectID, isRecursive)
- API Detail-
▼Input value
objectID(string) : Wwise object ID or path
・isRecursive(boolean):
true Get descendants / false Get children only
▼Output value
・childObjList(table): list of search results
・ID(string): ID of the object
Name(string): The name of the object.
・Path(string): The path of the object.
・Language(string): Language setting (if any)
- SCRIPT -
dofile(reaper.AZ_GetLuaInitPath())
require("reaper_AZSTOKE_GOLD")
if (reaper.AZ_Wwise_Connect("127.0.0.1",8080)) then
objectList = reaper.AZ_Wwise_GetSelectedObjectList()
Msg("----child----")
childObjList = reaper.AZ_Wwise_GetChildrenList(objectList[1].ID,false)
for i, value in pairs(childObjList) do
Msg("ID: "..value.ID)
Msg("Name: "..value.Name)
Msg("Path: "..value.Path)
end
Msg("----ancestor----")
childObjList = reaper.AZ_Wwise_GetChildrenList(objectList[1].ID,true)
for i, value in pairs(childObjList) do
Msg("ID: "..value.ID)
Msg("Name: "..value.Name)
Msg("Path: "..value.Path)
end
reaper.AZ_Wwise_Disconnect()
end