Path length limitation when creating a USD layer

Hi experts,

When I use pxr::SdfLayer::CreateNew() to create a new USD layer, the API fails to create the file if the path length is greater than 260. Is there any recommended practice to address this issue?

Thanks

I wonder if you’re hitting the Windows file path limitation.

Maximum Path Length Limitation - Win32 apps | Microsoft Learn

Yes, you are right. I have tried to use the “\\?\” prefix, but the USD API can’t resolve this kind of path.

The code here converts ‘‘\\?\” to “//?/”, which makes it not work.

PixarAnimationStudios/OpenUSD: Universal Scene Description