top of page
- API -

reaper.AZ_Wwise_AssignToSwitch(assignedItemID, switchOrStateID, isDefault)

- API Detail-

▼Input values

  • assignedItemID(string): ID (or path) of the Wwise object to assign

  • switchOrStateID(string): switch or state ID (or path)

  • isDefault(boolean): whether to set it as the Default Switch/State (optional, default: false)

▼Output values

- SCRIPT -

dofile(reaper.AZ_GetLuaInitPath())    

require("reaper_AZSTOKE_GOLD")    

    

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


    assignedItemPath = "\\Actor-Mixer Hierarchy\\Default Work Unit\\AZ SwitchContainer\\AZ Sound 01"

    

    switchPath = "\\Switches\\Default Work Unit\\Materials\\Glass"

    

    reaper.AZ_Wwise_AssignToSwitch(assignedItemPath, switchPath, true)

    

    Msg(reaper.AZ_GetErrorCode())

    

    reaper.AZ_Wwise_Disconnect()

end

Wwise

AZ_Wwise_AssignToSwitch

Supported versions:

1.2.0

onwards

Assign an object to a switch in a Switch Container

bottom of page