Quick background:
I have set up a new storage root for our project called “sync”. This folder is a reduced mirror of our “primary” folder structure. This sync folder is being sycned with remote artists.
What I would like to achieve:
I already managed to be able to publish to the “sync” storage root by simply supplying: "root": "sync"
in the templates.yml to the relevant file templates, and then use that template in my publish plugin.
Now I want to support saving / opening workfiles to the sync directory as well. For example if we set up an animation scene for our external artists.
For that I essentially would like to have two new tabs in the tk-multi-workfiles2 app.
I would like to use all the same entities but when a user is on that tab they should only see the workfiles / publishes coming from the “sync” storage root. And of course if they create a new file and save it should be saved in the “sync” directory.
Has anyone an idea if and how this can be achieved?
I am not exactly sure where this step is coming from but from other threads I found out it has something to do with the: pick_environment.py
In the pick_environment.py file the environment is returned based on an input context. But I wouldn’t know how I would change this context based on the “Tab” that a user has selected in the tk-multi-workfiles2 app?
I am not sure though if this approach is heading in the righ directiont at all tough…
At the moment what you want is not possible with the tk-multi-workfiles2 app. The app operates on the templates that you define in the config, which in turn are bound to a specific root (the “primary” by default) . Also there is no way to tie templates to specific tabs. So you are basically out of options. Of course you can always fork an app and implement the logic yourself, but that is often a lot of work and means that you have to maintain the app from that point forward.
Hope you LL find a viable solution for your issue soon!