
Audio Pass Through
Downloads: 5
Download Description
Sends selected Audio Scene Object from Array to Output as Scene Object to use with Audio Player Via Get Component.
//
// AudioPassThrough.ts
// Sends selected Audio Scene Object from Array to Output as Scene Object to use with Audio Player Via Get Component.
// Written by @Fusedthreed https://FusedThreeD.com
//
@customNode()
export class AudioPassThrough extends BasicScriptNode {
@input()
SceneObject_audio!: APJS.SceneObject[];
@input()
index: number = 0;
@output()
audioout!: APJS.SceneObject;
execute() {
if (
this.index >= 0 &&
this.index < this.SceneObject_audio.length
) {
this.audioout = this.SceneObject_audio[this.index];
}
}
}