Skip to content

Instantly share code, notes, and snippets.

View ak-brodrigue's full-sized avatar

Bernard Rodrigue ak-brodrigue

View GitHub Profile
@ak-brodrigue
ak-brodrigue / AutoAssignSwitchContainer_levenshtein.py
Last active April 24, 2024 12:44
Automatically Assign the children of a switch container to the switches
import argparse
from pprint import pprint
from waapi import WaapiClient # pip install waapi-client
import numpy as np # pip install numpy
import Levenshtein # pip install levenshtein
parser = argparse.ArgumentParser(description='Auto-Assign Switch Containers: using WAAPI, for the selected containers, automatically assign each child object to a switch or state from the group.')
parser.add_argument("objects", nargs="*", help="GUIDs of target switch containers")
args = parser.parse_args()
@ak-brodrigue
ak-brodrigue / waql-no-event.py
Created July 4, 2023 13:14
Python script returning all actor mixer objects not referenced by an event
from waapi import WaapiClient
# Connect (default URL)
client = WaapiClient()
options = {
'return': ['name', 'id', 'type', 'path']
}
AMH = client.call("ak.wwise.core.object.get", {
@ak-brodrigue
ak-brodrigue / object-set-import-music.py
Last active June 6, 2023 13:00
Creating Music objects with Wwise 2023.1+
# Copyright 2023 Audiokinetic Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@ak-brodrigue
ak-brodrigue / object-set-effect.py
Created October 13, 2022 12:25
Creating an effect shareset using WAAPI
from waapi import WaapiClient
import pprint
# Connect (default URL)
client = WaapiClient()
# Return all targets
args = {
"objects":[
{
@ak-brodrigue
ak-brodrigue / remote-connect-to-file.py
Created August 22, 2022 14:38
WAAPI connect to a file using ak.wwise.core.remote.connect
from waapi import WaapiClient
# Connect (default URL)
client = WaapiClient()
# Return all targets
args = {
"host":"D:\\code\\master1\\Wwise\\SDK\\samples\\IntegrationDemo\\WwiseProject\\ProfilingSession12.prof"
}