0
$\begingroup$

I am trying to use blender to convert the file type from usdz to glb. It works well in my local Mac. The script is like below

bpy.ops.wm.read_factory_settings(use_empty=True)
bpy.ops.wm.usd_import(filepath="usdzfile")
bpy.ops.export_scene.gltf(filepath=export_file)

but when I using the image with aws lambda. The second step always went wrong. It always said that failed to open the usdz file. Does anyone meet the same issue before? enter image description here

Any comments will be appreciated. Best,

$\endgroup$

1 Answer 1

0
$\begingroup$

I found the issue. It is a file path issue. The correct format is like

/tmp/<input_file>
$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .