robmcrosby / blenderusdz Goto Github PK
View Code? Open in Web Editor NEWSimple USDZ file exporter plugin for Blender3D
License: GNU General Public License v3.0
Simple USDZ file exporter plugin for Blender3D
License: GNU General Public License v3.0
Hello, I'm planning to use the file to import usdz to other file types via purely python script and CL, I was wondering if that would be possible with the use of this library?
Is this plugin still working for blender 2.90?
NASA hosts a rendering of earth: https://solarsystem.nasa.gov/resources/2393/earth-3d-model/
But in blender all that's visible is:
When i try to import a usdz file exported from houdini i get the following error.
Warning: 'OBJ_SEQUENCE_properties' doesn't contain '_PT_' with prefix & suffix
Warning: class IMPORT_OT_usdz contains a property which should be an annotation!
/home/tanghe/.config/blender/2.82/scripts/addons/io_scene_usdz/__init__.py:141
assign as a type annotation: IMPORT_OT_usdz.materials
assign as a type annotation: IMPORT_OT_usdz.animations
Warning: class EXPORT_OT_usdz contains a property which should be an annotation!
/home/tanghe/.config/blender/2.82/scripts/addons/io_scene_usdz/__init__.py:141
assign as a type annotation: EXPORT_OT_usdz.exportMaterials
assign as a type annotation: EXPORT_OT_usdz.exportAnimations
assign as a type annotation: EXPORT_OT_usdz.bakeTextures
assign as a type annotation: EXPORT_OT_usdz.bakeAO
assign as a type annotation: EXPORT_OT_usdz.bakeAOSamples
assign as a type annotation: EXPORT_OT_usdz.bakeTextureSize
assign as a type annotation: EXPORT_OT_usdz.globalScale
assign as a type annotation: EXPORT_OT_usdz.useConverter
0 meshes freed
Warning: property 'release_confirm' not found in keymap item 'OperatorProperties'
Traceback (most recent call last):
File "/home/tanghe/.config/blender/2.82/scripts/addons/io_scene_usdz/__init__.py", line 54, in execute
return import_usdz.import_usdz(context, **keywords)
File "/home/tanghe/.config/blender/2.82/scripts/addons/io_scene_usdz/import_usdz.py", line 19, in import_usdz
fileName, fileType = fileName.split('.')
ValueError: too many values to unpack (expected 2)
When executing an export using this tool I'm having this issue.
Traceback (most recent call last):
Support/Blender/2.80/scripts/addons/io_scene_usdz/__init__.py", line 123, in execute
return export_usdz.export_usdz(context, **keywords)
Support/Blender/2.80/scripts/addons/io_scene_usdz/export_usdz.py", line 54, in export_usdz
writeCrateFile(usdcPath, usdData)
Support/Blender/2.80/scripts/addons/io_scene_usdz/export_usdz.py", line 103, in writeCrateFile
crate.writeUsd(usdData)
Support/Blender/2.80/scripts/addons/io_scene_usdz/crate_file.py", line 652, in writeUsd
self.writeUsdPrim(child)
Support/Blender/2.80/scripts/addons/io_scene_usdz/crate_file.py", line 621, in writeUsdPrim
self.writeUsdPrim(child)
Support/Blender/2.80/scripts/addons/io_scene_usdz/crate_file.py", line 621, in writeUsdPrim
self.writeUsdPrim(child)
Support/Blender/2.80/scripts/addons/io_scene_usdz/crate_file.py", line 629, in writeUsdPrim
self.writeUsdAttribute(attribute)
Support/Blender/2.80/scripts/addons/io_scene_usdz/crate_file.py", line 584, in writeUsdAttribute
fset.append(self.addField('default', usdAtt.value, usdAtt.valueType))
Support/Blender/2.80/scripts/addons/io_scene_usdz/crate_file.py", line 431, in addField
return self.addFieldItem(field, vType, False, True, False, value)
Support/Blender/2.80/scripts/addons/io_scene_usdz/crate_file.py", line 160, in addFieldItem
rep = (vType.value << 48) | (payload & PAYLOAD_MASK)
TypeError: unsupported operand type(s) for &: 'list' and 'int'
location: <unknown location>:-1
Great converter. Thanks for building this. When I try to export a blender animation with key frames, I can only get the animation to export a still object at the position of the play head. Am I missing a step in conversion process or setting up animation in Blender incorrectly? Thanks!
I am a little confused as I cannot find the file mentioned (io_export_usdz.zip ). I can find io_scene_usdz.zip but not the export variant.
I click on Code and do not see that particular file name.
Regards,
Not to be critical, I'm sure this is a useful plugin but it seems there are two other (better?) methods this could be done:
Again, not saying this isn't a nice addon, but I'd recommend moving to one of the above methods rather than writing out files by hand. Seems to be re-inventing the wheel, or at least if the api changes will not work.
Every now and then I am getting this error, wondering if this is because I name the object with dots or maybe because of my setup with Sverchok nodes etc... not having the mesh in Collection?
location: <unknown location>:-1
Smart Projection time: 20.18
Info: Baking map saved to internal image, save it externally or pack it
Info: Deleted 1 object(s)
Traceback (most recent call last):
File "/Users/jimmygunawan/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/__init__.py", line 123, in execute
return export_usdz.export_usdz(context, **keywords)
File "/Users/jimmygunawan/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/export_usdz.py", line 54, in export_usdz
writeCrateFile(usdcPath, usdData)
File "/Users/jimmygunawan/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/export_usdz.py", line 103, in writeCrateFile
crate.writeUsd(usdData)
File "/Users/jimmygunawan/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/crate_file.py", line 628, in writeUsd
self.writeUsdPrim(child)
File "/Users/jimmygunawan/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/crate_file.py", line 597, in writeUsdPrim
self.writeUsdPrim(child)
File "/Users/jimmygunawan/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/crate_file.py", line 605, in writeUsdPrim
self.writeUsdAttribute(attribute)
File "/Users/jimmygunawan/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/crate_file.py", line 569, in writeUsdAttribute
fset.append(self.addField('default', usdAtt.value, usdAtt.valueType))
File "/Users/jimmygunawan/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/crate_file.py", line 416, in addField
return self.addFieldItem(field, type, False, True, False, value)
File "/Users/jimmygunawan/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/crate_file.py", line 159, in addFieldItem
rep = (vType.value << 48) | (payload & PAYLOAD_MASK)
TypeError: unsupported operand type(s) for &: 'list' and 'int'
location: <unknown location>:-1
location: <unknown location>:-1
Basic attempt on Blender 2.9.1 to export an simple model ( text logo extruded from an SVG )
please test it on Blender 2.93.0 i have texture but it is not exporting
bpy.ops.object.delete(use_global=False, confirm=False)
Deleted 1 object(s)
bpy.context.space_data.bookmarks_active = 0
bpy.context.space_data.bookmarks_active = 0
Traceback (most recent call last):
File "C:\Users\marku\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz_init_.py", line 48, in execute
return import_usdz.import_usdz(context, **keywords)
File "C:\Users\marku\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz\import_usdz.py", line 33, in import_usdz
usdData = crate.readUsd()
File "C:\Users\marku\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz\crate_file.py", line 698, in readUsd
index, jump = self.readUsdItem(data, index)
File "C:\Users\marku\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz\crate_file.py", line 659, in readUsdItem
index, itemJump =
self.readUsdItem(prim, index)
File "C:\Users\marku\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz\crate_file.py", line 659, in readUsdItem
index, itemJump = self.readUsdItem(prim, index)
File "C:\Users\marku\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz\crate_file.py", line 659, in readUsdItem
index, itemJump = self.readUsdItem(prim, index)
File "C:\Users\marku\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz\crate_file.py", line 664, in readUsdItem
valueType = getValueTypeStr(valueTypeStr)
File "C:\Users\marku\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz\value_types.py", line 167, in getValueTypeStr
return ValueType[typeStr]
File "C:\blender-2.81-695cbf5eef79-windows64\2.81\python\lib\enum.py", line 352, in getitem
return cls.member_map[name]
KeyError: 'double3'
location: :-1
I tried multiple models. All of them were created using the usdzconvert script that Apple provides. Attached one of the models for you to reproduce.
I'm getting a value error with this on import of a USDZ model. Does this mean the model is too complex?
Traceback (most recent call last):
File "/Users/samdelara/Library/Application Support/Blender/2.90/scripts/addons/io_scene_usdz/__init__.py", line 54, in execute
return import_usdz.import_usdz(context, **keywords)
File "/Users/samdelara/Library/Application Support/Blender/2.90/scripts/addons/io_scene_usdz/import_usdz.py", line 19, in import_usdz
fileName, fileType = fileName.split('.')
ValueError: too many values to unpack (expected 2)
location: <unknown location>:-1
Hi, when im installing add-on by choosing zip file, blender seems to be installing. but i cant find it in my add-on list. i have looked everywhere. It is just not exist.
I got an error when importing also textures along with an usdz file.
I was able to fix the issue on a couple of lines of code and now it works correctly for me on 2.83.
Here the link to the fixed addon if someone else needs this: http://u.pc.cd/khvrtalK
the importer crashes if a file name contains more than one dot char
Python: Traceback (most recent call last):
File "/Users/xxxx/Library/Application Support/Blender/2.91/scripts/addons/io_scene_usdz/__init__.py", line 54, in execute
return import_usdz.import_usdz(context, **keywords)
File "/Users/xxxx/Library/Application Support/Blender/2.91/scripts/addons/io_scene_usdz/import_usdz.py", line 19, in import_usdz
fileName, fileType = fileName.split('.')
ValueError: too many values to unpack (expected 2)
location: <unknown location>:-1
Hello,
I made test 3D scan of my face using the Capture app on iphone xs (https://apps.apple.com/us/app/capture-3d-scan-anything/id1444183458) which saves the 3D scans as *.usdz files.
I sent it to myself via email from the app and tried to import into Blender using your script, but theres nothing imported in the scene.
In Blender console it says "No usdc file found"
I know usdz is just zip file with other usd* files. so i tried to manually export the *.usdc file from the usdz and tried also to import directly *.usdc file, but nothing is imported, and with *.usdc theres no message in the log at all.
Then as last thing i tried to "zip" the exported usdc file again with zero compression (and putting the usdc file at the root of the zip), and renamed it to *.usdz. That actually imported something into Blender, i see vertex and face counts, but nothing really visible on screen and the location of the imported model was waay out somewhere - see first screenshot.
I moved the whole object to 0 0 0 and now i see single vertex like object in the middle of the screen which i tried to resize, but doenst help, it stays like that.
Capture is one of the fully free 3D scan apps afaik (for now and hopefully forever) supporting the TrueDepth camera on newer iphones so it would be really cool if this was fixed :)
BR,
Adam
Python: Traceback (most recent call last):
File "C:\Users\allie\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\io_scene_usdz\__init__.py", line 54, in execute
return import_usdz.import_usdz(context, **keywords)
File "C:\Users\allie\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\io_scene_usdz\import_usdz.py", line 38, in import_usdz
importData(context, usdData, tempDir, materials, animations)
File "C:\Users\allie\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\io_scene_usdz\import_usdz.py", line 81, in importData
materials = importMaterials(usdData, tempDir) if materials else {}
File "C:\Users\allie\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\io_scene_usdz\import_usdz.py", line 435, in importMaterials
mat = createMaterial(matData, tempDir)
File "C:\Users\allie\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\io_scene_usdz\import_usdz.py", line 454, in createMaterial
setMaterialInput(data, 'emissiveColor', 'Emission')
File "C:\Users\allie\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\io_scene_usdz\import_usdz.py", line 490, in setMaterialInput
setShaderInputTexture(data, inputData, inputName)
File "C:\Users\allie\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\io_scene_usdz\import_usdz.py", line 571, in setShaderInputTexture
texNode = getImageTextureNode(data, inputData.value.parent)
File "C:\Users\allie\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\io_scene_usdz\import_usdz.py", line 532, in getImageTextureNode
filePath = data['tempDir'] + usdTexture['inputs:file'].value
AttributeError: 'NoneType' object has no attribute 'value'
location: <unknown location>:-1
Here's the model: https://play.date/static/assets/media/playdate.usdz
Also reported here on the Blender forum.
Hi! I'm trying to export a model with your plugin. however, it throws an exception. Could you explain what's going wrong?
Traceback (most recent call last):
File "/Users/roman/Library/Application Support/Blender/2.82/scripts/addons/io_scene_usdz/init.py", line 123, in execute
return export_usdz.export_usdz(context, **keywords)
File "/Users/roman/Library/Application Support/Blender/2.82/scripts/addons/io_scene_usdz/export_usdz.py", line 40, in export_usdz
globalScale = globalScale)
File "/Users/roman/Library/Application Support/Blender/2.82/scripts/addons/io_scene_usdz/export_usdz.py", line 74, in exportUsdData
scene.loadContext(context)
File "/Users/roman/Library/Application Support/Blender/2.82/scripts/addons/io_scene_usdz/scene_data.py", line 830, in loadContext
bpy.ops.object.mode_set(mode='OBJECT')
File "/Applications/Blender.app/Contents/Resources/2.82/scripts/modules/bpy/ops.py", line 201, in call
ret = op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.object.mode_set.poll() failed, context is incorrect
location: :-1
I used export options:
bpy.ops.outliner.item_activate(extend=False, deselect_all=True)
bpy.data.window_managers["WinMan"].(null) = True
bpy.data.window_managers["WinMan"].(null) = True
bpy.data.window_managers["WinMan"].(null) = 128
bpy.data.window_managers["WinMan"].(null) = 512
Hi there. Thanks for the awesome plug-in. I tried it on this model, however, and it only imported about a third of the model:
Hi there,
I was wondering if there's support for exporting emissive textures for the purpose of making a lamp/light?
So far I haven't been able to get it to work with Principled BDSF or Emissive textures in Blender.
Thanks for your help
Python: Traceback (most recent call last):
File "/home/allie/.config/blender/3.0/scripts/addons/io_scene_usdz/__init__.py", line 66, in execute
return import_usdz.import_usdz(context, **keywords)
File "/home/allie/.config/blender/3.0/scripts/addons/io_scene_usdz/import_usdz.py", line 38, in import_usdz
importData(context, usdData, tempDir, materials, animations)
File "/home/allie/.config/blender/3.0/scripts/addons/io_scene_usdz/import_usdz.py", line 81, in importData
materials = importMaterials(usdData, tempDir) if materials else {}
File "/home/allie/.config/blender/3.0/scripts/addons/io_scene_usdz/import_usdz.py", line 440, in importMaterials
mat = createMaterial(matData, tempDir)
File "/home/allie/.config/blender/3.0/scripts/addons/io_scene_usdz/import_usdz.py", line 454, in createMaterial
setMaterialInput(data, 'metallic', 'Metallic')
File "/home/allie/.config/blender/3.0/scripts/addons/io_scene_usdz/import_usdz.py", line 495, in setMaterialInput
setShaderInputTexture(data, inputData, inputName)
File "/home/allie/.config/blender/3.0/scripts/addons/io_scene_usdz/import_usdz.py", line 582, in setShaderInputTexture
connectTextureToValueInput(data, texNode, input)
File "/home/allie/.config/blender/3.0/scripts/addons/io_scene_usdz/import_usdz.py", line 552, in connectTextureToValueInput
texNode.image.colorspace_settings.name = 'Non-Color'
TypeError: bpy_struct: item.attr = val: enum "Non-Color" not found in ('Linear', 'sRGB')
location: <unknown location>:-1
Happens when trying to import this:
playdate-flat.zip
I tried it on a bunch of usdz files provided by apple APIs, but there in no geometry I can see in blender.
This usdz file Toy drummer usdz for example doesnt work.
This is with blender 3.2 .
Any thoughts on how this can be fixed?
Traceback (most recent call last):
File "/Users/xxx/Library/Application Support/Blender/2.82/scripts/addons/io_scene_usdz/init.py", line 123, in execute
return export_usdz.export_usdz(context, **keywords)
File "/Users/xxx/Library/Application Support/Blender/2.82/scripts/addons/io_scene_usdz/export_usdz.py", line 40, in export_usdz
globalScale = globalScale)
File "/Users/xxx/Library/Application Support/Blender/2.82/scripts/addons/io_scene_usdz/export_usdz.py", line 74, in exportUsdData
scene.loadContext(context)
File "/Users/xxx/Library/Application Support/Blender/2.82/scripts/addons/io_scene_usdz/scene_data.py", line 830, in loadContext
bpy.ops.object.mode_set(mode='OBJECT')
File "/Applications/Blender.app/Contents/Resources/2.82/scripts/modules/bpy/ops.py", line 201, in call
ret = op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.object.mode_set.poll() failed, context is incorrect
location: :-1
hope thats helpful
Hello, the glare (Fog glow) export isn't really happening. Is it meant to work?
From my first test of the addon, I noticed that if I did not enable "Bake Texture" option, the Image Texture that I assign to Material does not actually get exported out. It will simply have Material with no texture.
So I need to use Bake Image Texture, specify the (optimized) size and only then I am getting USDZ with material + texture.
It might be slightly confusing for user however. Maybe they just want to export the Material + Texture as is, and not realizing "Bake Texture".
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
Traceback (most recent call last):
File "/Users/jimmygunawan/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/jimmygunawan/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/import_usdz.py", line 34, in import_usdz
usdData = crate.readUsd()
File "/Users/jimmygunawan/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/crate_file.py", line 700, in readUsd
index, jump = self.readUsdItem(data, index)
File "/Users/jimmygunawan/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/crate_file.py", line 659, in readUsdItem
index, itemJump = self.readUsdItem(prim, index)
File "/Users/jimmygunawan/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/crate_file.py", line 659, in readUsdItem
index, itemJump = self.readUsdItem(prim, index)
File "/Users/jimmygunawan/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/crate_file.py", line 659, in readUsdItem
index, itemJump = self.readUsdItem(prim, index)
[Previous line repeated 3 more times]
File "/Users/jimmygunawan/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/crate_file.py", line 664, in readUsdItem
valueType = getValueTypeFromStr(valueTypeStr)
File "/Users/jimmygunawan/Library/Application Support/Blender/2.81/scripts/addons/io_scene_usdz/value_types.py", line 172, in getValueTypeFromStr
return ValueType[typeStr]
File "/Applications/Blender.app/Contents/Resources/2.81/python/lib/python3.7/enum.py", line 352, in __getitem__
return cls._member_map_[name]
KeyError: 'color4f'
Example:
usdz
Likely cause:
def Mesh "ambientCG_Dummy_Delete_Me"
{
int[] faceVertexCounts = []
int[] faceVertexIndices = []
rel material:binding = </ambientCG_Material_PavingStones115A_1K_JPG>
point3f[] points = []
texCoord2f[] primvars:st = []
}
Example that doesn't hang:
Is there any chance that usdz exporting would work on Windows in near future?
Hey this plugin doesn't seem to work for me,
Blender Version 2.90.1 (2.90.1 2020-09-23)
`Traceback (most recent call last):
File "/Users/sterlingcrispin/Library/Application Support/Blender/2.90/scripts/addons/io_scene_usdz/init.py", line 54, in execute
return import_usdz.import_usdz(context, **keywords)
File "/Users/sterlingcrispin/Library/Application Support/Blender/2.90/scripts/addons/io_scene_usdz/import_usdz.py", line 38, in import_usdz
importData(context, usdData, tempDir, materials, animations)
File "/Users/sterlingcrispin/Library/Application Support/Blender/2.90/scripts/addons/io_scene_usdz/import_usdz.py", line 81, in importData
materials = importMaterials(usdData, tempDir) if materials else {}
File "/Users/sterlingcrispin/Library/Application Support/Blender/2.90/scripts/addons/io_scene_usdz/import_usdz.py", line 435, in importMaterials
mat = createMaterial(matData, tempDir)
File "/Users/sterlingcrispin/Library/Application Support/Blender/2.90/scripts/addons/io_scene_usdz/import_usdz.py", line 448, in createMaterial
setMaterialInput(data, 'diffuseColor', 'Base Color')
File "/Users/sterlingcrispin/Library/Application Support/Blender/2.90/scripts/addons/io_scene_usdz/import_usdz.py", line 490, in setMaterialInput
setShaderInputTexture(data, inputData, inputName)
File "/Users/sterlingcrispin/Library/Application Support/Blender/2.90/scripts/addons/io_scene_usdz/import_usdz.py", line 571, in setShaderInputTexture
texNode = getImageTextureNode(data, inputData.value.parent)
File "/Users/sterlingcrispin/Library/Application Support/Blender/2.90/scripts/addons/io_scene_usdz/import_usdz.py", line 540, in getImageTextureNode
mapNode = getTextureMappingNode(data, usdTexture)
File "/Users/sterlingcrispin/Library/Application Support/Blender/2.90/scripts/addons/io_scene_usdz/import_usdz.py", line 514, in getTextureMappingNode
uvMap = stData['inputs:varname'].value
AttributeError: 'NoneType' object has no attribute 'value'
location: :-1
`
i'm tryng to install the plugin in the normal way
this is the console:
Modules Installed () from '/Users/apo/Downloads/BlenderUSDZ-master.zip' into '/Users/apo/Library/Application Support/Blender/2.80/scripts/addons'
every thing seems to work but then I can't find the plugin in the installed list
n00b here, but what file am supposed to install exactly?
The instructions say to instal "io_export_usdz.zip", but all I see are files called "BlenderUSDZ-master.zip" and "io_scene_usdz.zip". Following through with the instructions anyway produces expected results of nothing showing up in add-ons menu to add on.
Where do I go from here? Is this no longer an operational plugin?
When I attempt to export a model the settings are totally blank. No options at all. SO the resulting used export is just the mesh. Like an Obj. Nothing else.
Hi,
I am trying to have separated parts in my model to be able to show/hide some parts (more described here). I found that I need to access modelEntity.children property and there should be many children for each parts. But for me it has only 1 child. How can I export model to have many parts/children? I am new in Blender so I don't know if I should keep each part in collection or how to set hierarchy.
Thanks for help
Hello, I am unable to install this through Blender 2.93. After selecting the BlenderUSDZ-master.zip, I see Blender processing the install but it never appears in the list of addons. Has anyone else had this issue? Do I need to revert back to 2.8 to use this addon?
Thanks
The project readme states that this is for the “UDSZ” format, which does not match the repository name, “BlenderUSDZ.”
Obviously a typo, but a rather dismarketing one to be on the front page of the addon. 🤭🙃
I cannot import the iPhone 11 Pro model found here. Maybe because I am running on Windows? Here's the stack trace:
Traceback (most recent call last):
File "C:\Users\satri\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz\__init__.py", line 54, in execute
return import_usdz.import_usdz(context, **keywords)
File "C:\Users\satri\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz\import_usdz.py", line 38, in import_usdz
importData(context, usdData, tempDir, materials, animations)
File "C:\Users\satri\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz\import_usdz.py", line 64, in importData
materials = importMaterials(usdData, tempDir) if materials else {}
File "C:\Users\satri\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz\import_usdz.py", line 416, in importMaterials
mat = createMaterial(matData, tempDir)
File "C:\Users\satri\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz\import_usdz.py", line 429, in createMaterial
setMaterialInput(data, 'diffuseColor', 'Base Color')
File "C:\Users\satri\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz\import_usdz.py", line 471, in setMaterialInput
setShaderInputTexture(data, inputData, inputName)
File "C:\Users\satri\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz\import_usdz.py", line 550, in setShaderInputTexture
texNode = getImageTextureNode(data, inputData.value.parent)
File "C:\Users\satri\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz\import_usdz.py", line 519, in getImageTextureNode
mapNode = getTextureMappingNode(data, usdTexture)
File "C:\Users\satri\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_usdz\import_usdz.py", line 495, in getTextureMappingNode
uvMap = stData['inputs:varname'].value.value
AttributeError: 'str' object has no attribute 'value'
location: <unknown location>:-1
Hi. Could you make the baking of the textures linked to the material instead of objects. Right now it exports texture map for every objects even if they have the same material. This is the gramaphone I downloaded from apple website. I imported and exported it again. Also how do I input custom AO map from blender. I dont see any AO Map when I import the USDZ File.
It seems your dependency to macOS and installed XCode with usdconvert is because you use the wrong (meaning not official) tool to convert from .usda to .usdc
Pixar has the python script usdcat to translate between USDA and USDC.
And this not only is installed on macOS, but can be installed on Linux and Windows as well.
There is a binary release of the USD Tools version 19.11 for Windows under Github VictorYudin
trying to load usdz from iphone app polycam (lidar scanning), textures are loaded and mesh but the UV map node connected to vector just says st and everything blank..
..removing or changing to uv mapping nothing works, so it's either not set at the source properly or there was some problem while importing..
example file https://gofile.io/d/rEFNfC
Hi, when I export a model to usdz, it does not show in AR Quick Look on my iPhone (not in AR View, nor in Object View). However, it shows perfectly in Quick Look on my Mac.
Does anyone have an idea where the problem could be?
I'm using Blender 2.82a and iOS 13.3.1 on my iPhone X
When I use the exporter with a material that has a texture map attached. It either exports with no material or the file wont be recognized by XCode or Apple's previewer. I assumed it was my asset, but when I downloaded the USDZ examples off Apple's website. They imported (using your importer) with the materials, but they do not export with the material. It only seems to work if I remove the texture maps and use the color sliders, but this wont work for the models I am trying to work on as I need the texture maps to export too. I tested this with using USDA and the USDZ converter, It did not work either.
Is it possible for this addon to import the latest version of USDZ (circa Object Capture API)?
I was making a video on this addon and finding a bug when I tried to export out a simple Duck mesh + texture and bake the AO.
I wonder if this is something to do with Mesh not selected or not inside expected Collection Set or something.
We need probably option to export Selected Objects only or everything in the scene, without having to actually select them manually.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.