top of page
- API -

workunit = reaper.AZ_Wwise_CreateWorkUnit(parentItemID, name)

- API Detail-

▼input value

  • parentItemID(string) : parent object ID(orパス)(Optional Default : Directly under Actor-Mixer-Hierarchy)
  • name(string) : name(Optional Default : New Work Unit)

▼output value

  • WwiseObject(WwiseObject) : ID, Name, Path
- SCRIPT -

dofile(reaper.AZ_GetLuaInitPath())    

require("reaper_AZSTOKE_GOLD")    

    

function showObject(object, depth)    

    

    local obj = object    

    if depth == nil then depth = 0 end    

    

    if(type(obj) == "table") then    

        Msg("")    

        for k, v in pairs(obj) do    

            for i = 1, depth, 1 do reaper.ShowConsoleMsg(" ") end     

            reaper.ShowConsoleMsg(tostring(k) .. " : ")    

    

            showObject(v, depth + 4)    

        end    

    else    

        Msg(obj)    

    end    

end    

    

if reaper.AZ_Wwise_Connect("127.0.0.1", 8080) then


    parentPath = "\\Actor-Mixer Hierarchy\\Default Work Unit\\test"

    

    workunit = reaper.AZ_Wwise_CreateWorkUnit(parentPath, "AZ Workunit")

    

    Msg(reaper.AZ_GetErrorCode())

    

    showObject(workunit)

    

    reaper.AZ_Wwise_Disconnect()

end


Wwise

AZ_Wwise_CreateWorkUnit

Supported versions:

1,2,0

onwards

Create work units

bottom of page