Hi tannaz,
Thanks for your answer.
The second solution using scene_operation_tk-photoshopcc.py looks a bit too “hacky” for me, I’d rather have a very clean and easy to read config, using templates.
I tried the first solution and got it working (how to down there if anyone wants to know).
I have some questions:
In pick_environment.py, I added two new return possibilities: shot_sourceimages
and asset_sourceimages
:
if context.task[‘name’] == ‘shading’…
Is there a way to change pick_environment.py so that those environments are only chosen if we are inside of Shotgun Integration for Photoshop?
Right now, those new environments are also picked if I am inside of Maya. I can handle this by configuring those environments for very DCC, but this is a lot of “hacking” to keep a normal config on other DCC and this is pretty dangerous if we decide later to add a new DCC and forget about this as those two environments would not be configured on it.
What I did:
In templates.yml
I created the templates I needed
In pick_environment.py, I added two new return possibilities: shot_sourceimages
and asset_sourceimages
:
if context.task[‘name’] == ‘shading’…
I modified all the files where I could find references to the nevironments asset_step
and shot_step
to use the correct templates keys for my new environments:
tk-photoshopcc.yml: ‘settings.tk-photoshopcc.shot_step_sourceimages’
tk-photoshopcc.yml: ‘settings.tk-photoshopcc.asset_step_sourceimages’
snapshot: ‘@settings.tk-multi-snapshot.photoshop.shot_step_sourceimages’
snapshot: ‘@settings.tk-multi-snapshot.photoshop.asset_step_sourceimages’
tk-multi-workfiles2: “@settings.tk-multi-workfiles2.photoshop.shot_step_sourceimage”
tk-multi-workfiles2: “@settings.tk-multi-workfiles2.photoshop.asset_step_sourceimage”
tk-multi-publish2: “@settings.tk-multi-publish2.photoshop.shot_step_sourceimages”
tk-multi-publish2: “@settings.tk-multi-publish2.photoshop.asset_step_sourceimage”
eg:
settings.tk-photoshopcc.asset_step_sourceimages:
apps:
tk-multi-about:
location: "@apps.tk-multi-about.location"
tk-multi-pythonconsole:
location: "@apps.tk-multi-pythonconsole.location"
tk-multi-loader2: "@settings.tk-multi-loader2.photoshop"
tk-multi-publish2: "@settings.tk-multi-publish2.photoshop.asset_step_sourceimages"
tk-multi-screeningroom: "@settings.tk-multi-screeningroom.rv"
tk-multi-shotgunpanel: "@settings.tk-multi-shotgunpanel.photoshop"
tk-multi-snapshot: "@settings.tk-multi-snapshot.photoshop.asset_step_sourceimages"
tk-multi-workfiles2: "@settings.tk-multi-workfiles2.photoshop.asset_step_sourceimages"
shelf_favorites:
- {app_instance: tk-multi-workfiles2, name: File Open...}
- {app_instance: tk-multi-snapshot, name: Snapshot...}
- {app_instance: tk-multi-workfiles2, name: File Save...}
- {app_instance: tk-multi-publish2, name: Publish...}
location: '@engines.tk-photoshopcc.location'