Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support relative resolved paths and uri-style assets #34

Open
wants to merge 2 commits into
base: python3
Choose a base branch
from

Conversation

pshinners
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants