In one operation, create child hierarchies under multiple objects: #1. Creates a new Sound object called 'Boom' under the specified parent, #2. Creates a new virtual folder called 'Guns' under the default work unit. If a folder with the same name already exists, it automatically finds a unique name, #3. Creates an event called 'Play_SFX' under the virtual folder 'WAAPI', with Play action on the SFX sound object, #4. Creates a Random Container called 'Boom' under the specified parent, with two Sound objects 'A' and 'B', #5. Creates a Custom Cue inside an existing Music Segment with the specified name and time in milliseconds. See the examples for ak.wwise.core.object.create to compare the two schemas.
Function URI
ak.wwise.core.object.set
Arguments
{
"objects": [
{
"object": "{7A12D08F-B0D9-4403-9EFA-2E6338C197C1}",
"children": [
{
"type": "Sound",
"name": "Boom"
}
]
},
{
"object": "\\Actor-Mixer Hierarchy\\Default Work Unit",
"children": [
{
"type": "Folder",
"name": "Guns"
}
],
"onNameConflict": "rename"
},
{
"object": "\\Events\\Default Work Unit",
"onNameConflict": "merge",
"children": [
{
"type": "Folder",
"name": "WAAPI",
"children": [
{
"type": "Event",
"name": "Play_SFX",
"children": [
{
"name": "",
"type": "Action",
"@ActionType": 1,
"@Target": "\\Actor-Mixer Hierarchy\\Default Work Unit\\SFX"
}
]
}
]
}
]
},
{
"object": "{7A12D08F-B0D9-4403-9EFA-2E6338C197C1}",
"children": [
{
"type": "RandomSequenceContainer",
"name": "Boom",
"@RandomOrSequence": 1,
"children": [
{
"type": "Sound",
"name": "A"
},
{
"type": "Sound",
"name": "B"
}
]
}
]
},
{
"object": "\\Interactive Music Hierarchy\\Default Work Unit\\My Segment",
"@Cues": [
{
"name": "My Music Cue",
"type": "MusicCue",
"@TimeMs": 1200,
"@CueType": 2
}
]
}
],
"onNameConflict": "fail"
}
Result
{
"objects": [
{
"id": "{7A12D08F-B0D9-4403-9EFA-2E6338C197C1}",
"name": "Default Work Unit",
"children": [
{
"id": "{66666666-7777-8888-9999-AAAAAAAAAAAA}",
"name": "Boom"
}
]
},
{
"id": "{7A12D08F-B0D9-4403-9EFA-2E6338C197C1}",
"name": "Default Work Unit",
"children": [
{
"id": "{66666666-7777-8888-9999-AAAAAAAAAAAA}",
"name": "Guns"
}
]
},
{
"id": "{C6C4338E-99E1-44C2-B881-F98612FEDF5F}",
"name": "Default Work Unit",
"children": [
{
"id": "{6114659F-9274-4031-B90E-F369568532E0}",
"name": "WAAPI",
"children": [
{
"id": "{F546017D-201A-49BD-8D4E-0A28F5DBB28D}",
"name": "Play_SFX",
"children": [
{
"id": "{400D0354-0FDB-48B4-B341-9DFA0B76078D}",
"name": ""
}
]
}
]
}
]
},
{
"id": "{7A12D08F-B0D9-4403-9EFA-2E6338C197C1}",
"name": "Default Work Unit",
"children": [
{
"id": "{66666666-7777-8888-9999-AAAAAAAAAAAA}",
"name": "Boom",
"children": [
{
"id": "{46813545-2168-3547-8328-681AB678D6F5}",
"name": "A"
},
{
"id": "{68465134-2548-2377-3541-321354318ABD}",
"name": "B"
}
]
}
]
},
{
"id": "{9111F89B-8227-4766-9FEF-BBE6CE5B9F6E}",
"name": "My Segment",
"@Cues": [
{
"id": "{1629938A-24F7-451F-B01F-49F448CED8FF}",
"name": "My Music Cue"
}
]
}
]
}
Refer to Using the Wwise Authoring API (WAAPI) for more information about Wwise Authoring API.