yum-slop/TaSTT
Free self-hosted STT for VRChat.
git clone https://git.yummers.dev/yum-slop/TaSTT
3db7723
v0.19.1
1import argparse 2import libunity 3import sys 4 5def setTextureSize ( path : str , size : int ) : 6parser = libunity . MulticoreUnityParser () 7anim = parser . parseFile ( path ) 8 9node = anim . nodes [ 0 ] 10node . mapping [ 'TextureImporter' ] . mapping [ 'maxTextureSize' ] = size 11for plat in node . mapping [ 'TextureImporter' ] . mapping [ 'platformSettings' ] . sequence : 12plat . mapping [ 'maxTextureSize' ] = size 13 14with open ( path , "w" , encoding = "utf-8" ) as f : 15f . write ( libunity . unityYamlToString ( anim . nodes )) 16 17if __name__ == "__main__" : 18parser = argparse . ArgumentParser () 19parser . add_argument ( "--meta" , type = str , help = "Path to texture .meta file." ) 20parser . add_argument ( "--size" , type = int , help = "Texture size." ) 21args = parser . parse_args () 22 23setTextureSize ( args . meta , args . size ) 24