From 3db7723aa5c16358f73e3e8d3bb20a959ce43d5d Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 10 Sep 2023 17:29:01 -0700 Subject: Users can now choose custom chatbox texture size in UI --- Scripts/remove_audio_sources.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Scripts/remove_audio_sources.py') 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) -- cgit v1.2.3