Good question!
So a simple approach would be to have separate instances of the app configured in the same environment with different menu names. The loader app has a menu_name
parameter that can be configured, so you could have different loader options for your artists in the Shotgun menu, each will load a differently configured tk-multi-loader2
.
Much like this but for the loader.
Obviously that wouldn’t hide the menus for other departments, but it’s simple.
Other options would include:
- Create separate environments for each department, and modify the
core/hooks/pick_environment.py
hook to return the different environment based on the department of the user. (The user can be found in the context object, though you would need to do an additional sg find to get their department.) - Use the template hook to dynamically define the settings. Honestly, though, I think this would get messy and confusing, and it would be better to have separate environments. Here is an example of another place where I suggest it: Workfiles tab order