USD path in Shared Drive #2973
-
Hello everyone! I'm developing a pipeline for my Master at uni around USD. Me and my group want to work in remote on a single Maya scene with USD stage on a Google Drive shared drive. Any help would be really appreciate because I don't know what else to try. Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Does everyone have the same g drive? Seems like as long as you use full paths, things should work...so if your Master_LayerShape points to g:/Shared drives/FMP/Scene/Layers/Master_Layer.usd, it should work for you and everyone. But it does look like using relative paths to your project won't work, neither will settings environment variables like $WORKSPACE/Scene/Layers/Folders/Master_Layer.usd...the env var seems to work on read, but when the scene is written, maya-usd is expanding the path and losing the var, which should be a bug. |
Beta Was this translation helpful? Give feedback.
-
Hi @DGaggio, In MayaUSD 0.22.0 we've implemented relative file support for loading and saving the USD root file. That means if you save your scene file in the 'scenes' directory of your Maya project, then you are able to load/save your USD root file (Master_Layer.usd) in this directory as well (or anywhere else in your project) and have the path be relative from the scene file to the USD root file. When loading or creating a USD root file you should get a checkbox like this:
The absolute paths should work though. I am not sure why your colleague opens the .ma file and gets an anonymous file as the root USD layer. Feel free to share this .ma file and I can take a look (the USD files aren't necessary I just need to see the file paths). Natalia |
Beta Was this translation helpful? Give feedback.
-
Hi @DGaggio, Good that you see the checkbox, I took a look in your .ma file and the checkbox was used correctly. The problem was syntax errors in all your USD files - brackets missing and instead of 'over' you had 'open'. I've fixed them for you, see attached. Also, if you open the 'Script Editor' in Maya when you have a problem, you can see we identify the problem (syntax error), the USD file, and the line number in the file. Let me know if you have any other issues. Good luck on your assignment! Natalia |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I fixed your paths in LayoutFolder.usd and AnimationFolder.usd. See attached. They needed to be relative paths (with periods at the front to indicate you are going back a directory). It's tricky doing this by hand - some knowledge about relative pathing is needed. We are actually currently working on being able to make everything relative. This post validates how much we do need this. Stay tuned! Natalia |
Beta Was this translation helpful? Give feedback.
I fixed your paths in LayoutFolder.usd and AnimationFolder.usd. See attached. They needed to be relative paths (with periods at the front to indicate you are going back a directory). It's tricky doing this by hand - some knowledge about relative pathing is needed. We are actually currently working on being able to make everything relative. This post validates how much we do need this. Stay tuned!
Natalia
Scene_new.zip