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

Create reference using relative path instead of absolute path in Maya #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

qpskcn1
Copy link

@qpskcn1 qpskcn1 commented Jan 17, 2018

When we open up an empty Maya scene and load some assets published through different OS, everything looks fine.
But if we open a Maya scene which have references created by loader under other OS, the path would be wrong.
For example, there is an asset located at our network storage, we use loader to create a reference in a Maya scene. At this moment, the reference we created uses path /mnt/assets/brutus. Then we open this Maya scene in Windows, this reference would be missed since the path of that reference cannot be found.

Using relative path could resolve this issue.

@manneohrstrom
Copy link
Contributor

Hi! Thanks for the PR! Heads up that toolkit might already do what you are looking for, without having to make the paths local. Check out https://support.shotgunsoftware.com/hc/en-us/articles/115000067493-Integrations-Admin-Guide#Resolving%20file%20URLs

If you set the env vars SHOTGUN_PATH_WINDOWS, SHOTGUN_PATH_MAC, and SHOTGUN_PATH_LINUX, Toolkit should be able to translate paths cross platform automatically!

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.

2 participants