This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from waapi import WaapiClient | |
import pprint | |
# Array of RGBA arrays | |
colors = [ | |
[135, 135, 135, 1], | |
[55, 62, 200, 1], | |
[26, 85, 203, 1], | |
[8, 104, 104, 1], | |
[24, 109, 24, 1], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from waapi import WaapiClient | |
import pprint | |
# Connect (default URL) | |
client = WaapiClient() | |
# Return all events referencing the specified object | |
args = { | |
"from": {"path": ['\\Actor-Mixer Hierarchy\\Default Work Unit\\with_att']}, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from waapi import WaapiClient | |
import pprint | |
# Connect (default URL) | |
client = WaapiClient() | |
# Return all targets | |
args = { | |
"from": {"path": ['\\Events\\Default Work Unit\\Play']}, | |
"transform": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from waapi import WaapiClient | |
import pprint | |
# Connect (default URL) | |
client = WaapiClient() | |
# Return all events referencing the specified object | |
args = { | |
"from": {"path": ['\\Actor-Mixer Hierarchy\\Default Work Unit\\MySound']}, | |
"transform": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from waapi import WaapiClient, CannotConnectToWaapiException | |
from pprint import pprint | |
try: | |
# Connecting to Waapi using default URL | |
with WaapiClient() as client: | |
# Simple RPC | |
args = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from waapi import WaapiClient, CannotConnectToWaapiException | |
from pprint import pprint | |
try: | |
# Connecting to Waapi using default URL | |
with WaapiClient() as client: | |
# Simple RPC | |
args = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from waapi import WaapiClient, CannotConnectToWaapiException | |
from pprint import pprint | |
try: | |
# Connecting to Waapi using default URL | |
with WaapiClient() as client: | |
# Simple RPC | |
args = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as fs from 'fs'; | |
import * as util from 'util'; | |
const fsp = fs.promises; | |
function myRead(callback: (e: Error, result: string) => void) { | |
fs.readFile("C:/temp/data.txt", (e, buffer) => { callback(e, buffer.toString()) }); | |
} | |
function myRead2(): Promise<string> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from waapi import WaapiClient, CannotConnectToWaapiException | |
from pprint import pprint | |
try: | |
# Connecting to Waapi using default URL | |
with WaapiClient() as client: | |
# Simple RPC | |
args = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from waapi import WaapiClient | |
import pprint | |
# Connect (default URL) | |
client = WaapiClient() | |
# Return all Soundbanks referencing any object of the Default Work Unit, through an event | |
args = { | |
"from": {"path": ['\\Actor-Mixer Hierarchy\\Default Work Unit']}, | |
"transform": [ |
NewerOlder