# \#javascript

**URL:** https://qa.fmod.com/tag/javascript/16.md

[Latest](https://qa.fmod.com/latest.md) · [Categories](https://qa.fmod.com/categories.md) · [Tags](https://qa.fmod.com/tags.md)

---

## [Scripting API: Checking if an audioFile object is valid](https://qa.fmod.com/t/scripting-api-checking-if-an-audiofile-object-is-valid/23901)

<div class="topic-metadata">

**Author:** [@CaioMJ](https://qa.fmod.com/u/CaioMJ)\
**Replies:** 3\
**Last updated:** [February 6, 2026, 2:37am UTC](https://qa.fmod.com/t/scripting-api-checking-if-an-audiofile-object-is-valid/23901 "2026-02-06T02:37:38Z")

</div>

Hello, I’m writing some automation with JavaScript using the Scripting API. One of the things I’m doing is iterating through all events in my FMOD project and getting a list of all audio assets referenced by an event, h…

---

## [Batch rename Labeled Parameter Labels](https://qa.fmod.com/t/batch-rename-labeled-parameter-labels/23795)

<div class="topic-metadata">

**Author:** [@buffalo\_clink](https://qa.fmod.com/u/buffalo_clink)\
**Replies:** 3\
**Last updated:** [December 18, 2025, 11:11pm UTC](https://qa.fmod.com/t/batch-rename-labeled-parameter-labels/23795 "2025-12-18T23:11:00Z")

</div>

Hi, Has anyone made a script to do the following: Labeled Parameter contains many labels with name ‘Old\_Label\_X’ where ‘X’ is some number. Requirement is to batch update all labels in the parameter to ‘New\_Label\_X’. P…

---

## [Unofficial FMOD Entity Model Documentation](https://qa.fmod.com/t/unofficial-fmod-entity-model-documentation/23731)

<div class="topic-metadata">

**Author:** [@tRoshan](https://qa.fmod.com/u/tRoshan)\
**Replies:** 1\
**Last updated:** [November 30, 2025, 9:31pm UTC](https://qa.fmod.com/t/unofficial-fmod-entity-model-documentation/23731 "2025-11-30T21:31:48Z")

</div>

Hi all, For years I have worked with FMOD Scripting API and felt I had to rely on object.dump to query all the properties each for objects on a project that heavily relied on fmod scripting. I recently made something t…

---

## [HTML5 Core API Multi Speaker Example Not Working](https://qa.fmod.com/t/html5-core-api-multi-speaker-example-not-working/23062)

<div class="topic-metadata">

**Author:** [@tmartinez88](https://qa.fmod.com/u/tmartinez88)\
**Replies:** 3\
**Last updated:** [June 27, 2025, 5:44am UTC](https://qa.fmod.com/t/html5-core-api-multi-speaker-example-not-working/23062 "2025-06-27T05:44:22Z")

</div>

The example on the web page does not work using latest Firefox/Chrome/Arc It does however work when I run the library locally (I have to place audiofiles in the root directory however and change the fileUrl var to poin…

---

## [Adding pitch shift automation curve through script](https://qa.fmod.com/t/adding-pitch-shift-automation-curve-through-script/23016)

<div class="topic-metadata">

**Author:** [@norbertweiher](https://qa.fmod.com/u/norbertweiher)\
**Replies:** 3\
**Last updated:** [June 12, 2025, 10:53pm UTC](https://qa.fmod.com/t/adding-pitch-shift-automation-curve-through-script/23016 "2025-06-12T22:53:21Z")

</div>

Hello FMOD community! My current workflow requires auto-creating a lot of similar events. I wrote a script which automates most parts (instrument creation, bank / folder assignment, adding of preset FX, routing). For t…

---

## [Automating audio file import and assignment to event instruments via scripting API](https://qa.fmod.com/t/automating-audio-file-import-and-assignment-to-event-instruments-via-scripting-api/22751)

<div class="topic-metadata">

**Author:** [@norbertweiher](https://qa.fmod.com/u/norbertweiher)\
**Replies:** 3\
**Last updated:** [April 2, 2025, 4:52am UTC](https://qa.fmod.com/t/automating-audio-file-import-and-assignment-to-event-instruments-via-scripting-api/22751 "2025-04-02T04:52:11Z")

</div>

Hello team FMOD! The game I’m currently working on has a lot of characters that share a similar setup for their sound events. I’m writing a script to automate the import process. Here’s what I’m trying to achieve: Usi…

---

## [Delete User Property from script?](https://qa.fmod.com/t/delete-user-property-from-script/22732)

<div class="topic-metadata">

**Author:** [@deHaan](https://qa.fmod.com/u/deHaan)\
**Replies:** 2\
**Last updated:** [March 26, 2025, 10:37am UTC](https://qa.fmod.com/t/delete-user-property-from-script/22732 "2025-03-26T10:37:49Z")

</div>

I am working on a script that adds a User Property to all events that contains a specific Effect Chain on their master track, and have a script that works for this. However, I cannot figure out how to make the script rem…

---

## [Autonaming tracks with last imported sound file](https://qa.fmod.com/t/autonaming-tracks-with-last-imported-sound-file/22696)

<div class="topic-metadata">

**Author:** [@LmonTandon](https://qa.fmod.com/u/LmonTandon)\
**Replies:** 4\
**Last updated:** [March 20, 2025, 8:55am UTC](https://qa.fmod.com/t/autonaming-tracks-with-last-imported-sound-file/22696 "2025-03-20T08:55:40Z")

</div>

Hi Everyone, is there a functional script that creates a track and auto name’s it after the file that i importing the last? I have a huge session and i have always to rename all of my tracks when importing a new file. It…

---

## [Possible to Create Asset Folder from Script? Also NavigateTo does not target AssetFolders](https://qa.fmod.com/t/possible-to-create-asset-folder-from-script-also-navigateto-does-not-target-assetfolders/22365)

<div class="topic-metadata">

**Author:** [@roc\_lee](https://qa.fmod.com/u/roc_lee)\
**Replies:** 3\
**Last updated:** [December 11, 2024, 3:29am UTC](https://qa.fmod.com/t/possible-to-create-asset-folder-from-script-also-navigateto-does-not-target-assetfolders/22365 "2024-12-11T03:29:39Z")

</div>

Per this topic it seems like you can’t Create an asset folder from script? Seems to still not be the case in 2.03. YOu can do so via right click in the asset browser to create a new empty folder though so would be gre…

---

## [HTML5 API - "Random" multi instruments always play the same sub-instrument](https://qa.fmod.com/t/html5-api-random-multi-instruments-always-play-the-same-sub-instrument/22351)

<div class="topic-metadata">

**Author:** [@TheDarkSid3r](https://qa.fmod.com/u/TheDarkSid3r)\
**Replies:** 2\
**Last updated:** [December 5, 2024, 4:23am UTC](https://qa.fmod.com/t/html5-api-random-multi-instruments-always-play-the-same-sub-instrument/22351 "2024-12-05T04:23:59Z")

</div>

HTML5 engine - 2.03.03 I have not tested this in any other engine, but can consistently reproduce it in the JS engine with any project. Steps to reproduce: Create event with multi instrument Add a few unique sub-inst…

---

## [HTML5 API - Cannot create sounds from audio table](https://qa.fmod.com/t/html5-api-cannot-create-sounds-from-audio-table/22356)

<div class="topic-metadata">

**Author:** [@TheDarkSid3r](https://qa.fmod.com/u/TheDarkSid3r)\
**Replies:** 3\
**Last updated:** [December 4, 2024, 12:39am UTC](https://qa.fmod.com/t/html5-api-cannot-create-sounds-from-audio-table/22356 "2024-12-04T00:39:24Z")

</div>

HTML5 engine - 2.03.03 using fmodstudioL.wasm banks loaded via memory I have a simple audio table and an event with a single programmer instrument. I have this code (below) in my CREATE\_PROGRAMMER\_SOUND callback, but …

---

## [How do I create a bank folder structure with a script?](https://qa.fmod.com/t/how-do-i-create-a-bank-folder-structure-with-a-script/22362)

<div class="topic-metadata">

**Author:** [@dvoryaninov-d](https://qa.fmod.com/u/dvoryaninov-d)\
**Replies:** 1\
**Last updated:** [December 4, 2024, 12:24am UTC](https://qa.fmod.com/t/how-do-i-create-a-bank-folder-structure-with-a-script/22362 "2024-12-04T00:24:47Z")

</div>

I want to be able to input a custom folder structure (f.e. \\packs\\common\_extra\_sounds\\Sound\\Mobile\\common\_extra\_sounds.bank) into a script so it will generate all the folders and the bank. How do I do that?

---

## [Trying to move audiofiles in FMOD via script, what's the best way?](https://qa.fmod.com/t/trying-to-move-audiofiles-in-fmod-via-script-whats-the-best-way/22286)

<div class="topic-metadata">

**Author:** [@roc\_lee](https://qa.fmod.com/u/roc_lee)\
**Replies:** 7\
**Last updated:** [November 27, 2024, 12:01am UTC](https://qa.fmod.com/t/trying-to-move-audiofiles-in-fmod-via-script-whats-the-best-way/22286 "2024-11-27T00:01:38Z")

</div>

Hey All, wondering if anyone’s had success using the FMOD Studio scripting api to import and move assets? using the built in javascript, project.importAudioFile() works fine, but it only imports to root. I want to mov…

---

## [Refreshing Parameter Sheet Visuals with Javascript Tool](https://qa.fmod.com/t/refreshing-parameter-sheet-visuals-with-javascript-tool/22343)

<div class="topic-metadata">

**Author:** [@robindemute](https://qa.fmod.com/u/robindemute)\
**Replies:** 1\
**Last updated:** [November 25, 2024, 3:04pm UTC](https://qa.fmod.com/t/refreshing-parameter-sheet-visuals-with-javascript-tool/22343 "2024-11-25T15:04:13Z")

</div>

Hello there, I’ve been messing around with Javascript tools for Fmod, one of the tools I’m writing creates a labeled parameter sheet for an event. When this parameter sheet is created, the parameter sheet only shows th…

---

## [Looking for possible difficulty of implementing background thread worker in NW.js](https://qa.fmod.com/t/looking-for-possible-difficulty-of-implementing-background-thread-worker-in-nw-js/22131)

<div class="topic-metadata">

**Author:** [@creta5164](https://qa.fmod.com/u/creta5164)\
**Replies:** 1\
**Last updated:** [October 8, 2024, 10:42pm UTC](https://qa.fmod.com/t/looking-for-possible-difficulty-of-implementing-background-thread-worker-in-nw-js/22131 "2024-10-08T22:42:08Z")

</div>

Hello, I’ve recently been investigating whether it’s possible to make the web version of FMOD work in a background thread, once in a while when I have a free moment. The reason is that when heavy synchronous work is be…

---

## [Event.findInstances() remembers deleted events](https://qa.fmod.com/t/event-findinstances-remembers-deleted-events/22038)

<div class="topic-metadata">

**Author:** [@deHaan](https://qa.fmod.com/u/deHaan)\
**Replies:** 1\
**Last updated:** [August 26, 2024, 9:48am UTC](https://qa.fmod.com/t/event-findinstances-remembers-deleted-events/22038 "2024-08-26T09:48:58Z")

</div>

It seems like doing something like: var events = studio.project.model.Event.findInstances(); Remembers events that have been deleted in the project, until you restart FMOD. I am working on a script that checks through …

---

## [Studio API - Get NamedMarkers in the order thay are in the logic track](https://qa.fmod.com/t/studio-api-get-namedmarkers-in-the-order-thay-are-in-the-logic-track/21978)

<div class="topic-metadata">

**Author:** [@RGLD\_O](https://qa.fmod.com/u/RGLD_O)\
**Replies:** 3\
**Last updated:** [August 13, 2024, 6:49am UTC](https://qa.fmod.com/t/studio-api-get-namedmarkers-in-the-order-thay-are-in-the-logic-track/21978 "2024-08-13T06:49:24Z")

</div>

Hello! I have the following code to extract the name of NamedMarkers in a specific logic track: Blockquote allEvents.forEach(function (event) { var markerTrack = event.markerTracks\[2\]; var destinationMarkerNames = ;…

---

## [Is there a way to access FMOD\_STUDIO\_PARAMETER\_ID within a Studio Script?](https://qa.fmod.com/t/is-there-a-way-to-access-fmod-studio-parameter-id-within-a-studio-script/20577)

<div class="topic-metadata">

**Author:** [@taleworlds](https://qa.fmod.com/u/taleworlds)\
**Replies:** 7\
**Last updated:** [June 13, 2024, 4:12am UTC](https://qa.fmod.com/t/is-there-a-way-to-access-fmod-studio-parameter-id-within-a-studio-script/20577 "2024-06-13T04:12:21Z")

</div>

Hey there, I’m working on a small Fmod Studio tool where I need to access FMOD\_STUDIO\_PARAMETER\_ID, yet I couldn’t find a way to go even into parameter descriptions. Is there a way to access that info within a Studio Sc…

---

## [Script to extract loop length](https://qa.fmod.com/t/script-to-extract-loop-length/21747)

<div class="topic-metadata">

**Author:** [@RGLD\_O](https://qa.fmod.com/u/RGLD_O)\
**Replies:** 1\
**Last updated:** [June 12, 2024, 2:02am UTC](https://qa.fmod.com/t/script-to-extract-loop-length/21747 "2024-06-12T02:02:03Z")

</div>

I wonder if there is a way to obtain the length of a loop region and then store it as a rounded-up int value in the user properties. I have a javascript script that helps me handle accessing and creating user properties …

---

## [Script to place assets](https://qa.fmod.com/t/script-to-place-assets/21689)

<div class="topic-metadata">

**Author:** [@dada\_da](https://qa.fmod.com/u/dada_da)\
**Replies:** 3\
**Last updated:** [June 10, 2024, 2:55pm UTC](https://qa.fmod.com/t/script-to-place-assets/21689 "2024-06-10T14:55:59Z")

</div>

Hi, For a project I am trying to place around 100 assets (already imported to project) on a discrete parameter sheet and match the filename with the value of the parameter. Very similar to the Unity Piano FMOD example. …

---

## [Adding audio files automatically to a parameter sheet label](https://qa.fmod.com/t/adding-audio-files-automatically-to-a-parameter-sheet-label/21662)

<div class="topic-metadata">

**Author:** [@Lulios](https://qa.fmod.com/u/Lulios)\
**Replies:** 4\
**Last updated:** [May 30, 2024, 9:10am UTC](https://qa.fmod.com/t/adding-audio-files-automatically-to-a-parameter-sheet-label/21662 "2024-05-30T09:10:14Z")

</div>

Hello everyone, I have been trying to figure out how to script the addition of an audio file to each label of a parameter sheet. So far, I have been manually dropping the audio file into the track for each label, but t…

---

## [Studio::System::update function call frequency. Sound artefacts](https://qa.fmod.com/t/studio-update-function-call-frequency-sound-artefacts/21667)

<div class="topic-metadata">

**Author:** [@d.mazur](https://qa.fmod.com/u/d.mazur)\
**Replies:** 2\
**Last updated:** [May 28, 2024, 1:27pm UTC](https://qa.fmod.com/t/studio-update-function-call-frequency-sound-artefacts/21667 "2024-05-28T13:27:03Z")

</div>

Hello! My company wants to use FMOD for new games. I am developing a PoC and I am interested in how often Studio::System::update should be called. I am trying to do this in requestAnimationFrame and then the calls occur …

---

## [Typescript Definition for Studio Scripting API](https://qa.fmod.com/t/typescript-definition-for-studio-scripting-api/21655)

<div class="topic-metadata">

**Author:** [@michaelhartung](https://qa.fmod.com/u/michaelhartung)\
**Replies:** 2\
**Last updated:** [May 24, 2024, 7:56am UTC](https://qa.fmod.com/t/typescript-definition-for-studio-scripting-api/21655 "2024-05-24T07:56:43Z")

</div>

Hi, I just released a first version of Typescript Definitions for the FMOD Studio Scripting API and a small starter project to get things going. The hope was to make for a better developer experience while creating…

---

## [Script to register child events in MultiSound?](https://qa.fmod.com/t/script-to-register-child-events-in-multisound/21492)

<div class="topic-metadata">

**Author:** [@berserk77](https://qa.fmod.com/u/berserk77)\
**Replies:** 8\
**Last updated:** [May 23, 2024, 6:23am UTC](https://qa.fmod.com/t/script-to-register-child-events-in-multisound/21492 "2024-05-23T06:23:05Z")

</div>

on selected events Add multi-sound, add a child event, Add programmer sound to child event I would like to register a child event for the added multi-sound. I tried a few things but failed. var event = studio.windo…

---

## [Script For Setting Platform Exclusion on All Instances of an Effect](https://qa.fmod.com/t/script-for-setting-platform-exclusion-on-all-instances-of-an-effect/20945)

<div class="topic-metadata">

**Author:** [@JSMallard](https://qa.fmod.com/u/JSMallard)\
**Replies:** 3\
**Last updated:** [January 9, 2024, 6:56pm UTC](https://qa.fmod.com/t/script-for-setting-platform-exclusion-on-all-instances-of-an-effect/20945 "2024-01-09T18:56:40Z")

</div>

Hey Everyone! I was reading through this post here and it seems like @jashan accomplished what I am trying to do. Oculus Spatializer is not usable with PSVR and I have been switching to Resonance Audio for compatibili…

---

## [FMOD for Construct 3](https://qa.fmod.com/t/fmod-for-construct-3/21099)

<div class="topic-metadata">

**Author:** [@skymen](https://qa.fmod.com/u/skymen)\
**Replies:** 6\
**Last updated:** [May 6, 2024, 2:28pm UTC](https://qa.fmod.com/t/fmod-for-construct-3/21099 "2024-05-06T14:28:31Z")

</div>

Hello, I have released an FMOD implementation for Construct 3. At the moment, it uses the JS API to implement the functionnalities, but it has been designed to make it so I can swap it to a C++ implementation in the fu…

---

## [How to add platform and close ModalDialog in script?](https://qa.fmod.com/t/how-to-add-platform-and-close-modaldialog-in-script/20677)

<div class="topic-metadata">

**Author:** [@MisakaCirno](https://qa.fmod.com/u/MisakaCirno)\
**Replies:** 7\
**Last updated:** [September 22, 2023, 6:34am UTC](https://qa.fmod.com/t/how-to-add-platform-and-close-modaldialog-in-script/20677 "2023-09-22T06:34:37Z")

</div>

I’m working on a script, but I’m running into two problems. The first problem: I can get all the platforms in the current preference via studio.project.workspace.platforms, and I can make changes to them, but I can’t …

---

## [Audio modding in FMOD Studio](https://qa.fmod.com/t/audio-modding-in-fmod-studio/21533)

<div class="topic-metadata">

**Author:** [@Maximum](https://qa.fmod.com/u/Maximum)\
**Replies:** 1\
**Last updated:** [April 24, 2024, 4:47am UTC](https://qa.fmod.com/t/audio-modding-in-fmod-studio/21533 "2024-04-24T04:47:46Z")

</div>

I know that FMOD Studio can use js scripts so I have one question. I am involved in game modding, which, of course, requires connecting an additional bank file for new sounds. I have no problem with this, but here’s the…

---

## [How to add EffectPreset to event's master track](https://qa.fmod.com/t/how-to-add-effectpreset-to-events-master-track/21391)

<div class="topic-metadata">

**Author:** [@katharinab15](https://qa.fmod.com/u/katharinab15)\
**Replies:** 3\
**Last updated:** [April 11, 2024, 11:31pm UTC](https://qa.fmod.com/t/how-to-add-effectpreset-to-events-master-track/21391 "2024-04-11T23:31:53Z")

</div>

Hello, I am trying to add an EffectPreset to the master track of an event. So far I managed to add a default spatialiser effect by using event.masterTrack.mixerGroup.effectChain.addEffect('SpatialiserEffect'); The API…

---

## [VS Code Extension For JS Remote Execution](https://qa.fmod.com/t/vs-code-extension-for-js-remote-execution/21455)

<div class="topic-metadata">

**Author:** [@michaelhartung](https://qa.fmod.com/u/michaelhartung)\
**Replies:** 1\
**Last updated:** [April 7, 2024, 10:01pm UTC](https://qa.fmod.com/t/vs-code-extension-for-js-remote-execution/21455 "2024-04-07T22:01:08Z")

</div>

Hi, I’d like to share a small weekend project of mine in the hopes it might be useful for someone else. It’s a VS Code extension that allows for connecting to a FMOD Studio instance and execute javascript via the docum…

[Next page](https://qa.fmod.com/tag/javascript/16.md?match_all_tags=true&page=1&tags%5B%5D=javascript)
