top of page
- API -

action = reaper.AZ_Wwise_AddActionToEvent(eventItemID,  actionType, targetItemID)

- API Detail-

▼Input values

  • eventItemD(string): event ID (or path)

  • actionType(integer): action type (optional, default: 1 (Play))

  • targetItemID(string): target object ID (or path) (optional, default: none)

▼Output values

  • WwiseObject(WwiseObject) : ID, Name, Path

- SCRIPT -

dofile(reaper.AZ_GetLuaInitPath())    

require("reaper_AZSTOKE_GOLD")    

    

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


    eventItemPath = "\\Events\\Default Work Unit\\AZ_Event"

    

    targetItemPath = "\\Actor-Mixer Hierarchy\\Default Work Unit\\AZ Sound"

    

    action = reaper.AZ_Wwise_AddActionToEvent(eventItemPath,  1, targetItemPath)

    

    Msg(reaper.AZ_GetErrorCode())

    

    ShowObject(action)

    

    reaper.AZ_Wwise_Disconnect()

end


Wwise

AZ_Wwise_AddActionToEvent

Supported versions:

1,2,0

onwards

Add an action to an event

bottom of page