-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hi, thanks for this great library 👍🏻 I am trying to convert a USDZ file to gltf format but getting the following error:
TypeError: can only concatenate str (not "NoneType") to str
Debug logs below:
Converting: /Users/mechaadi/Documents/projects/python/xyz/uploads/c2eb8896-bb3a-4255-b999-a814740fcf52/model.usdz
To: model.gltf
DEBUG:usd2gltf.converter:Created converter
DEBUG:usd2gltf.converter:Unzipped source file: /var/folders/mp/dbr6dwr97td2pfsrvpvxxylr0000gn/T/tmp391fxq3_/model/Users/mechaadi/Documents/projects/python/xyz/uploads/c2eb8896-bb3a-4255-b999-a814740fcf52/baked_mesh.usdc
DEBUG:usd2gltf.converter:== USD -> glTF Settings ==
DEBUG:usd2gltf.converter: - Interpolation: LINEAR
DEBUG:usd2gltf.converter:== Stage Contents ==
DEBUG:usd2gltf.converter:Materials:
DEBUG:usd2gltf.converters.usd_material: - material[0]: /baked_mesh/Materials/texture_0 : texture_0
Traceback (most recent call last):
File "/Users/mechaadi/Documents/projects/python/xyz/venv/bin/usd2gltf", line 8, in <module>
sys.exit(main())
File "/Users/mechaadi/Documents/projects/python/xyz/venv/lib/python3.9/site-packages/usd2gltf/cli.py", line 73, in main
args.func(args)
File "/Users/mechaadi/Documents/projects/python/xyz/venv/lib/python3.9/site-packages/usd2gltf/cli.py", line 17, in run
factory.process(stage, args.output)
File "/Users/mechaadi/Documents/projects/python/xyz/venv/lib/python3.9/site-packages/usd2gltf/converter.py", line 251, in process
material_id, gltfMaterial = usd_material.convert(
File "/Users/mechaadi/Documents/projects/python/xyz/venv/lib/python3.9/site-packages/usd2gltf/converters/usd_material.py", line 329, in convert
gltfMaterial.pbrMetallicRoughness.baseColorTexture = handle_texture(
File "/Users/mechaadi/Documents/projects/python/xyz/venv/lib/python3.9/site-packages/usd2gltf/converters/usd_material.py", line 148, in handle_texture
" - UsdPrimvarSampler: " + uv_map_name + " : " + str(uv_idx)
TypeError: can only concatenate str (not "NoneType") to str
Any help is much appreciated! 😄
Sidm9
Metadata
Metadata
Assignees
Labels
No labels