Open enzyme69 opened 4 years ago
An update, after some updates to the script there is a new error when attempting to import robot.usdz. The import functionality is still not entirely implemented but, will keep this ticket open until the script can import robot.usdz.
Traceback (most recent call last): File "/Users/robertcrosby/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/__init__.py", line 54, in execute return import_usdz.import_usdz(context, **keywords) File "/Users/robertcrosby/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/import_usdz.py", line 38, in import_usdz importData(context, usdData, tempDir, materials, animations) File "/Users/robertcrosby/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/import_usdz.py", line 67, in importData addObject(context, object, materials, animated = animated) File "/Users/robertcrosby/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/import_usdz.py", line 288, in addObject addObject(context, child, materials, obj, animated) File "/Users/robertcrosby/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/import_usdz.py", line 288, in addObject addObject(context, child, materials, obj, animated) File "/Users/robertcrosby/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/import_usdz.py", line 288, in addObject addObject(context, child, materials, obj, animated) [Previous line repeated 1 more time] File "/Users/robertcrosby/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/import_usdz.py", line 269, in addObject applyBoneWeights(obj, mesh) File "/Users/robertcrosby/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/import_usdz.py", line 387, in applyBoneWeights obj.vertex_groups[bone].add([index], weight, 'REPLACE') IndexError: bpy_prop_collection[index]: index 0 out of range, size 0
There are all kind of error reported when I tried to import USDZ, but I wonder if you can make this one work Basically I am curious on Apple's example Body Motion Capture and wanted to import the robot.usdz and using my own character.
https://developer.apple.com/documentation/arkit/capturing_body_motion_in_3d