summaryrefslogtreecommitdiffstats
path: root/Scripts/remove_audio_sources.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-09-10 17:29:01 -0700
committeryum <yum.food.vr@gmail.com>2023-09-10 17:29:01 -0700
commit3db7723aa5c16358f73e3e8d3bb20a959ce43d5d (patch)
treea2dfa638188a774618d4814ad6b0e02bff511b80 /Scripts/remove_audio_sources.py
parent4a4909919223a7446944c6248472c7f71a30307c (diff)
Users can now choose custom chatbox texture size in UI
Diffstat (limited to 'Scripts/remove_audio_sources.py')
-rw-r--r--Scripts/remove_audio_sources.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Scripts/remove_audio_sources.py b/Scripts/remove_audio_sources.py
index 0b4e566..0486169 100644
--- a/Scripts/remove_audio_sources.py
+++ b/Scripts/remove_audio_sources.py
@@ -1,3 +1,4 @@
+import argparse
import libunity
import sys
@@ -16,5 +17,9 @@ def removeAudioSources(path: str):
f.write(libunity.unityYamlToString(anim.nodes))
if __name__ == "__main__":
- removeAudioSources(sys.argv[1])
+ parser = argparse.ArgumentParser()
+ parser.add_argument("--prefab", type=str, help="Path to .prefab file.")
+ args = parser.parse_args()
+
+ removeAudioSources(args.prefab)