Path mapping only maya reference

Hi all !

I have a quick question on path mapping.
I have a render farm connected to a VPN to our network. However heavy files are very slow to upload.
I would like to make a copy of the files on a server on the renderfarm one time, then use path mapping.

However, last time a tried, it’s was a bit complicated. I had to make sure to get all the files rights because there was no “fail safe” to our VPN in case of a missing file. If a file was missing on the render farm server it was not search through the VPN.

I have only a few heavy files that are an isssue, mainly maya references (nested also).
I would like to be able to only path map those specific reference.
I was thinking maybe with regular expression, checking if the file end with .mb? Not sure if possible.
Any other tips on how to handle that would be appreciated !

Thanks and have a good weekend !

You could totally do that with regex, the path mapping rules supports it.

Also check out asset dependencies so you don’t have to wait for the file transfer to finish before submitting the job. Once the files are available on the render computer it’ll be able to start the task.

Thanks Justin for the answer !
Also while trying to do the setup, i remembered about the local asset caching option.
I’ve gave it a try but only textures got cached in local, not maya reference. Is it expected behavior ?
Thanks !

well, after more test, it’s looks like dirmap doen’t work for referenced file ? is that correct ?
I’m planning to swtich to using variable like that instead $disk/path/to/file.ma