top of page
- API -

event = reaper.AZ_Wwise_CreateEvent(parentItemID, name, actionType, targetItemID )

- API Detail-

▼Input value

・parentItemID(String) : Parent ID (or path) of the creation destination (optional, default: \\Events\\Default Work Unit)

・name(String) : Name (optional, default: New_Event)

・actionType(Int) : Action type (optional, default: 1 (Play))

・targetItemID(String) : Target object ID (or path) (optional, default: empty string)

・isUnique(Bool): Whether to create a new object if one with the same name already exists


▼Output value

・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


    parentPath = "\\Events\\Default Work Unit\\test"

    

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

    

    event = reaper.AZ_Wwise_CreateEvent(parentPath, "AZ Event", 1, targetItemPath )

    

    Msg(reaper.AZ_GetErrorCode())

    

    ShowObject(event)

    

    reaper.AZ_Wwise_Disconnect()

end


Wwise

AZ_Wwise_CreateEvent

Supported versions:

1,2,0

onwards

Create Event

bottom of page