pip install aspose-3dpython usdz2glb.py ./test.usdz test.glbOutput
File created: True
| import sys | |
| import os.path | |
| import aspose.threed as a3d | |
| def usdz2glb(usdzFilePath, glbFileName): | |
| scene = a3d.Scene.from_file(usdzFilePath) | |
| scene.save(glbFileName) | |
| file_exits = os.path.exists(glbFileName) | |
| print('File created: ', file_exits,end='\n') | |
| sys.stdout.flush() | |
| if __name__ == '__main__': | |
| usdz2glb(sys.argv[1], sys.argv[2]) |