VFX-UsdAssetResolver icon indicating copy to clipboard operation
VFX-UsdAssetResolver copied to clipboard

windows absolute path drive letter lower case

Open Xelt opened this issue 1 year ago • 2 comments

With the Cached Resolver set with SetExposeRelativePathIdentifierState(True), the drive letter on windows is returned as lower case trough assetPath argument of ResolveAndCache method...

In Houdini U:/path/to/file

@staticmethod
def ResolveAndCache(context, assetPath):
    print(assetPath)

assetPath = u:/path/to/file

Xelt avatar Aug 28 '24 20:08 Xelt

Thanks for flagging this!

I'll have to check the code if we are on purpose lowercasing it (as far as I remember, no). Since Windows is case-insensitive, this shouldn't matter for resolving itself (but it probably affects how the pinning file needs to be stored).

LucaScheller avatar Aug 28 '24 20:08 LucaScheller

This is caused by TfNormPath, in the CreateIdentifier() call, only on windows compiled usd does it do this. Normaliaze any windows style paths that get added to the mappingPairs or cachedPairs to be sure of matching

vanridal avatar Oct 24 '24 02:10 vanridal