PixarAnimationStudios / OpenUSD

Universal Scene Description
http://www.openusd.org
Other
5.99k stars 1.18k forks source link

UsdUtilsCreateNewUsdzPackage keeps all the parent folders of asset file in USDZ file #2469

Open GreatWhite2018 opened 1 year ago

GreatWhite2018 commented 1 year ago

Description of Issue

For example, if I call UsdUtilsCreateNewUsdzPackage("E:\folder1\folder2\folder3\test.usdc", "E:\test.usdz"), the "test.usdc" file's path in generated usdz file will be "folder1\folder2\folder3\test.usdc". It looks strange.

On the other hand, if I call another fucntion UsdUtilsCreateNewARKitUsdzPackage("E:\folder1\folder2\folder3\test.usdc", "E:\test.usdz"), the "test.usdc" file's path in generated usdz file will be "test.usdc", without any parent folders.

Are these behaviors by design?

System Information (OS, Hardware) Edition Windows 10 Enterprise Version 21H2 OS build 19044.2006

Package Versions v22.08

Build Flags ['--no-python', '--no-imaging', '--build-monolithic']

jesschimein commented 1 year ago

Filed as internal issue #USD-8400