File References using Env Var

File References using Env Var

patrick8CTF6
Enthusiast Enthusiast
801 Views
0 Replies
Message 1 of 1

File References using Env Var

patrick8CTF6
Enthusiast
Enthusiast

Trying to avoid the back and forth when sharing scenes with animation and lighting across networks. I see that most of the Maya project works with relative paths but File References do not support relative paths. I see that Environment Variables are compatible and can be used, but I can't see how to make this work.

 

I've defined an Env Var for the project and passed it off to $Project, but replacing this string with the absolute path doesn't work and Maya asks where the file is. 

 

My hope is that I can send an artist a link to the Project root and after they set it as their project, all images and referenced files (groom, render data, audio, etc.) will be linked, regardless of where the project sits on their PC.

 

I made a custom project and defined the env var, getenv "$Project" returns MAYA_PROJECT, which returns my project address. 

 

Am I going about this correctly? Currently using DropBox for file shares and working multiple projects at a time.

 

802 Views
0 Replies
Replies (0)