Pre-COVID, our artists used the Photoshop and Maya Publishing Plugins to save their files on our shared storage and publish them to Shotgun. However, when we started working from home, many artists found the internet too slow for working on shared storage and have been saving their files locally and only connecting to shared storage when they want to publish the files to Shotgun.
It’s a little laborious to do this with the Photoshop and Maya Plugins, so I’ve been trying to build a hook for the Shotgun Desktop Publish app that would handle this renaming and relocating for them. It would do something like the following:
- Figure out what kind of file the user is publishing (e.g. psd, ma, mov)
- Use that and the selected Task to get a Path Template for the file
- Save the file to that path
Then the Publish App would use that new path for the latter steps of the process (i.e. “Publish to Shotgun”, “Upload for review”.)
Has anyone done that before? Any advice on clever ways to get those Path templates? And how do I ensure that latter publish plugins use my new path and not the original, incoming one?
Would love your advice!