# Scripting：how can I import the asset folder by script？

**URL:** <https://qa.fmod.com/t/scripting-how-can-i-import-the-asset-folder-by-script/19579>\
**Category:** FMOD Studio\
**Created:** [November 25, 2022, 9:18am UTC](https://qa.fmod.com/t/scripting-how-can-i-import-the-asset-folder-by-script/19579 "2022-11-25T09:18:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![muxiao1994](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@muxiao1994](https://qa.fmod.com/u/muxiao1994)\
**Post date:** [November 25, 2022, 9:18am UTC](https://qa.fmod.com/t/scripting-how-can-i-import-the-asset-folder-by-script/19579/1 "2022-11-25T09:18:12Z")

</div>

> var audiofile = studio.project.workspace.masterAssetFolder.getAsset(“sfx\_char\_skill01\_blast\_r01.wav”)  
> audiofile.setAssetPath(“sfx/sfx\_char\_skill01\_blast\_r01.wav”)

I used the codes to set audiofile folder, but the folder shows #unimported, how can I import the folder by script？  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/6/6763977ea0fd4ec9abba1b7539c3516dce1c602e.png)

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [December 4, 2022, 11:14pm UTC](https://qa.fmod.com/t/scripting-how-can-i-import-the-asset-folder-by-script/19579/2 "2022-12-04T23:14:15Z")

</div>

Hi,

Apologies for the delayed response.

Currently, we do not have the functionality to create a folder via a script that can be imported into the asset browser. I will suggest this to our development team to look into further.

---

<div class="post-metadata">

**Author:** ![muxiao1994](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@muxiao1994](https://qa.fmod.com/u/muxiao1994)\
**Post date:** [March 21, 2024, 7:10am UTC](https://qa.fmod.com/t/scripting-how-can-i-import-the-asset-folder-by-script/19579/3 "2024-03-21T07:10:37Z")

</div>

Is the issue fixed?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [March 22, 2024, 1:19am UTC](https://qa.fmod.com/t/scripting-how-can-i-import-the-asset-folder-by-script/19579/4 "2024-03-22T01:19:29Z")

</div>

Hi,

Unfortunately not. I have bumped the task.

Once there are updates I will post them here.

---

<div class="post-metadata">

**Author:** ![Coomzy](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@Coomzy](https://qa.fmod.com/u/Coomzy)\
**Post date:** [September 22, 2025, 6:34pm UTC](https://qa.fmod.com/t/scripting-how-can-i-import-the-asset-folder-by-script/19579/5 "2025-09-22T18:34:49Z")

</div>

Any update on this? I’m running into the same issue from slightly different context (folders/files created outside of FMOD but importing the audio file via script)

I’ve noticed right clicking on the folder (or parent folders) and selecting “Import Contents” fixes the issue. Is there a way to trigger that same behaviour from a script?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [September 22, 2025, 11:53pm UTC](https://qa.fmod.com/t/scripting-how-can-i-import-the-asset-folder-by-script/19579/6 "2025-09-22T23:53:50Z")

</div>

Hi,

Unfortunately not. The task is still in our backlog.

I will note your interest.

---

<div class="post-metadata">

**Author:** ![Coomzy](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@Coomzy](https://qa.fmod.com/u/Coomzy)\
**Post date:** [September 23, 2025, 11:09am UTC](https://qa.fmod.com/t/scripting-how-can-i-import-the-asset-folder-by-script/19579/7 "2025-09-23T11:09:56Z")

</div>

Thanks for the quick reply.

Is there no work around? It’s the only thing left in our automated workflow and while it technically does still work, I’m not sure what effects having unimported folders has on the project/version control.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [September 25, 2025, 5:01am UTC](https://qa.fmod.com/t/scripting-how-can-i-import-the-asset-folder-by-script/19579/8 "2025-09-25T05:01:47Z")

</div>

Unfortunately not.

The main issue with the `#unimported` tag is those folders will be ignored by our integrated source control systems: [FMOD Studio | Managing Assets - Unimported Files](https://fmod.com/docs/2.03/studio/managing-assets.html#unimported-files). If you are using your own source control they should be safely ignored. But when manually interacting with the project, I would suggest importing them. Please let me know if you run into any issues.
