# Creating Bank with folders?

**URL:** <https://qa.fmod.com/t/creating-bank-with-folders/20122>\
**Category:** FMOD Studio\
**Created:** [April 17, 2023, 9:23am UTC](https://qa.fmod.com/t/creating-bank-with-folders/20122 "2023-04-17T09:23:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fkkcloud](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fkkcloud/32/2134_2.png) [@fkkcloud](https://qa.fmod.com/u/fkkcloud)\
**Post date:** [April 17, 2023, 9:23am UTC](https://qa.fmod.com/t/creating-bank-with-folders/20122/1 "2023-04-17T09:23:27Z")

</div>

Hello,

I have about 600 folders with multiple .wav files per each folder.  
I am trying to make 600 banks/audiotables for each folder.  
This is for dialogues and each folder represents a conversation.

I was trying to create a 1 bank for all as streaming but this will be a too much of memory overhead.  
Is there easy way to do this?

Thank you  
J

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [April 18, 2023, 2:39am UTC](https://qa.fmod.com/t/creating-bank-with-folders/20122/2 "2023-04-18T02:39:05Z")

</div>

Hi,

To handle such a large amount of banks, you’ll want to look into the Studio Scripting API and writing a custom script for creating your banks and audio tables based on the corresponding folders and assets.

Bank and Audio Table creation and assignment is fairly simple:

```auto
var bank = studio.project.create("Bank");
bank.name = "NewBank";
var table = studio.project.create("AudioTable")
table.name = "NewTable";
table.sourceDirectory = "Assets/AudioTableDirectory";
bank.audioTable = table;

```

The difficult part will be enumerating your folders. You can access an array of all assets in your project with `studio.project.workspace.masterAssetFolder.assets` - unfortunately, these aren’t stored in the same hierarchy as they are shown in the Assets tab, so you’ll need to iterate through each asset and parse their `assetPath` property. Alternatively, you may find it easier to use an external means (i.e. a scripting language with better filesystem access) to parse your directory and write your folders to a text file, open that text file with `studio.system.getFile("./Your/TextFile/Path/Here.txt")`, and then parse each folder name/path to create your banks and audio tables.

I’d recommend taking a look at the [Studio Scripting API Reference](https://www.fmod.com/docs/2.02/studio/scripting-api-reference.html) for more info. The `.dump()` function is also extremely useful, as it will list all the functions, properties, and property values of any given `ManagedObject` (i.e. any of the entities in your project).
