Skip to content

Support relative resolved paths and uri-style assets#34

Open
pshinners-blz wants to merge 2 commits intodreamworksanimation:python3from
Blizzard:ar2-fixes
Open

Support relative resolved paths and uri-style assets#34
pshinners-blz wants to merge 2 commits intodreamworksanimation:python3from
Blizzard:ar2-fixes

Conversation

@pshinners-blz
Copy link

The first commit updates the regular expression usdmanager uses to identify references. Previously it did not recognize uri style paths, which are supported by under ArResolver2.0.

The second commit updates the ArResolver2.0 code path to use the source as an anchor. This allows relative references to work
with non-filename asset references. Usd Manager has some internal path manipulation to allow relative paths to work with plain file paths, but it needs to use the resolver plugin for non file paths. This logic already exists when dealing with the ArResolver1.0 API, but when the 2.0 support was added this was overlooked.

@gj-dwa
Copy link
Collaborator

gj-dwa commented Jan 24, 2024

Could you sign the contributor agreement and email that to usdmanager@dreamworks.com?

Your contribution is very much appreciated!

pkilgo-blz and others added 2 commits January 26, 2024 13:16
This updates the regular expression usdmanager uses to identify file references. Previously it did not recognize uri style paths, which are supported by Usd under ArResolver2.0. Signed-off-by: Peter Shinners <pshinners@blizzard.com>
This updates the ArResolver2.0 code path to use the source file as an anchor. This allows relative references to work with non-filename asset references. Usd Manager has some internal path manipulation to allow relative paths to work with plain file paths, but it needs to use the resolver plugin for non file paths. This logic already exists when dealing with the ArResolver1.0 API, but when the 2.0 i support was added this was overlooked. Signed-off-by: Peter Shinners <pshinners@blizzard.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants