Skip to content

Commit a6fb7ac

Browse files
authored
41726 Adding shot environment for photoshop, flame, shell and other various cleanups (#36)
1 parent 9d16ca3 commit a6fb7ac

File tree

11 files changed

+219
-112
lines changed

11 files changed

+219
-112
lines changed

env/includes/flame/project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# not expressly granted therein are reserved by Shotgun Software Inc.
1010
#
1111

12-
# this configuration defines the behavior of the Houdini Integration when it
12+
# this configuration defines the behavior of the Flame Integration when it
1313
# is running in its project level configuration
1414

1515
includes:

env/includes/flame/shot.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (c) 2017 Shotgun Software Inc.
2+
#
3+
# CONFIDENTIAL AND PROPRIETARY
4+
#
5+
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
6+
# Source Code License included in this distribution package. See LICENSE.
7+
# By accessing, using, copying or modifying this work you indicate your
8+
# agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
9+
# not expressly granted therein are reserved by Shotgun Software Inc.
10+
#
11+
12+
# this configuration defines the behavior of the Flame Integration when it
13+
# is running in its project level configuration
14+
15+
includes:
16+
- ../common/engines.yml
17+
18+
19+
# the flame integration is built into flame
20+
# we only include the engine here so that we can launch flame
21+
# from shotgun desktop and shotgun.
22+
flame.shot:
23+
apps:
24+
location: "@common.engines.tk-flame.location"
25+

env/includes/photoshopcc/apps.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Copyright (c) 2017 Shotgun Software Inc.
2+
#
3+
# CONFIDENTIAL AND PROPRIETARY
4+
#
5+
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
6+
# Source Code License included in this distribution package. See LICENSE.
7+
# By accessing, using, copying or modifying this work you indicate your
8+
# agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
9+
# not expressly granted therein are reserved by Shotgun Software Inc.
10+
#
11+
12+
# this include configuration defines the common app behavior of the Photoshop Integration
13+
# when it is running at various levels of configuration
14+
15+
includes:
16+
- ../common/apps.yml
17+
- ../common/settings/tk-multi-publish2.yml
18+
19+
20+
photoshopcc.apps.tk-multi-publish2:
21+
help_url: "@common.apps.tk-multi-publish2.help_url"
22+
collector: "{config}/tk-multi-publish2/basic/collector.py:{config}/tk-multi-publish2/photoshopcc.basic/collector.py"
23+
publish_plugins:
24+
- "@common.settings.tk-multi-publish2.publish_file"
25+
- "@common.settings.tk-multi-publish2.upload_version"
26+
- name: Begin file versioning
27+
hook: "{config}/tk-multi-publish2/photoshopcc.basic/start_version_control.py"
28+
settings: {}
29+
- "@common.settings.tk-multi-publish2.publish_photoshop_document"
30+
- name: Upload for review
31+
hook: "{config}/tk-multi-publish2/photoshopcc.basic/upload_version.py"
32+
settings: {}
33+
location: "@common.apps.tk-multi-publish2.location"
34+
35+
photoshopcc.apps.tk-multi-loader2:
36+
action_mappings:
37+
Photoshop Image: [add_as_a_layer, open_file]
38+
Rendered Image: [add_as_a_layer, open_file]
39+
Image: [add_as_a_layer, open_file]
40+
Texture: [add_as_a_layer, open_file]
41+
actions_hook: "{self}/tk-photoshopcc_actions.py"
42+
entities:
43+
- caption: Current Project
44+
type: Hierarchy
45+
root: "{context.project}"
46+
publish_filters: []
47+
- caption: My Tasks
48+
type: Query
49+
entity_type: Task
50+
filters:
51+
- [project, is, "{context.project}"]
52+
- [task_assignees, is, "{context.user}"]
53+
hierarchy: [entity, content]
54+
# ignore publishes without a status. with zero config, it is very easy
55+
# to publish the same path multiple times. the default zero config publish
56+
# plugins will clear the status of previous publishes of the same path.
57+
# this filter means only the latest publish will be displayed.
58+
publish_filters: [["sg_status_list", "is_not", null]]
59+
location: "@common.apps.tk-multi-loader2.location"
60+
61+
photoshopcc.apps.tk-multi-shotgunpanel:
62+
shotgun_fields_hook: "{self}/shotgun_fields.py"
63+
actions_hook: "{self}/general_actions.py"
64+
action_mappings:
65+
PublishedFile:
66+
- actions: [publish_clipboard]
67+
filters: {}
68+
- actions: [add_as_a_layer, open_file]
69+
filters: {published_file_type: Photoshop Image}
70+
- actions: [add_as_a_layer, open_file]
71+
filters: {published_file_type: Rendered Image}
72+
- actions: [add_as_a_layer, open_file]
73+
filters: {published_file_type: Image}
74+
- actions: [add_as_a_layer, open_file]
75+
filters: {published_file_type: Texture}
76+
Task:
77+
- actions: [assign_task, task_to_ip]
78+
filters: {}
79+
Version:
80+
- actions: [quicktime_clipboard, sequence_clipboard]
81+
filters: {}
82+
enable_context_switch: true
83+
location: "@common.apps.tk-multi-shotgunpanel.location"
84+

env/includes/photoshopcc/project.yml

Lines changed: 4 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
# is running in its project level configuration
1414

1515
includes:
16-
- ../common/frameworks.yml
1716
- ../common/engines.yml
1817
- ../common/apps.yml
19-
- ../common/settings/tk-multi-publish2.yml
18+
- apps.yml
2019

2120

2221
photoshopcc.project:
@@ -25,70 +24,11 @@ photoshopcc.project:
2524

2625
tk-multi-pythonconsole: "@common.apps.tk-multi-pythonconsole"
2726

28-
tk-multi-publish2:
29-
help_url: "@common.apps.tk-multi-publish2.help_url"
30-
collector: "{config}/tk-multi-publish2/basic/collector.py:{config}/tk-multi-publish2/photoshopcc.basic/collector.py"
31-
publish_plugins:
32-
- "@common.settings.tk-multi-publish2.publish_file"
33-
- "@common.settings.tk-multi-publish2.upload_version"
34-
- name: Begin file versioning
35-
hook: "{config}/tk-multi-publish2/photoshopcc.basic/start_version_control.py"
36-
settings: {}
37-
- "@common.settings.tk-multi-publish2.publish_photoshop_document"
38-
- name: Upload for review
39-
hook: "{config}/tk-multi-publish2/photoshopcc.basic/upload_version.py"
40-
settings: {}
41-
location: "@common.apps.tk-multi-publish2.location"
27+
tk-multi-publish2: "@photoshopcc.apps.tk-multi-publish2"
4228

43-
tk-multi-loader2:
44-
action_mappings:
45-
Photoshop Image: [add_as_a_layer, open_file]
46-
Rendered Image: [add_as_a_layer, open_file]
47-
Image: [add_as_a_layer, open_file]
48-
Texture: [add_as_a_layer, open_file]
49-
actions_hook: "{self}/tk-photoshopcc_actions.py"
50-
entities:
51-
- caption: Current Project
52-
type: Hierarchy
53-
root: "{context.project}"
54-
publish_filters: []
55-
- caption: My Tasks
56-
type: Query
57-
entity_type: Task
58-
filters:
59-
- [project, is, "{context.project}"]
60-
- [task_assignees, is, "{context.user}"]
61-
hierarchy: [entity, content]
62-
# ignore publishes without a status. with zero config, it is very easy
63-
# to publish the same path multiple times. the default zero config publish
64-
# plugins will clear the status of previous publishes of the same path.
65-
# this filter means only the latest publish will be displayed.
66-
publish_filters: [["sg_status_list", "is_not", null]]
67-
location: "@common.apps.tk-multi-loader2.location"
29+
tk-multi-loader2: "@photoshopcc.apps.tk-multi-loader2"
6830

69-
tk-multi-shotgunpanel:
70-
shotgun_fields_hook: "{self}/shotgun_fields.py"
71-
actions_hook: "{self}/general_actions.py"
72-
action_mappings:
73-
PublishedFile:
74-
- actions: [publish_clipboard]
75-
filters: {}
76-
- actions: [add_as_a_layer, open_file]
77-
filters: {published_file_type: Photoshop Image}
78-
- actions: [add_as_a_layer, open_file]
79-
filters: {published_file_type: Rendered Image}
80-
- actions: [add_as_a_layer, open_file]
81-
filters: {published_file_type: Image}
82-
- actions: [add_as_a_layer, open_file]
83-
filters: {published_file_type: Texture}
84-
Task:
85-
- actions: [assign_task, task_to_ip]
86-
filters: {}
87-
Version:
88-
- actions: [quicktime_clipboard, sequence_clipboard]
89-
filters: {}
90-
enable_context_switch: true
91-
location: "@common.apps.tk-multi-shotgunpanel.location"
31+
tk-multi-shotgunpanel: "@photoshopcc.apps.tk-multi-shotgunpanel"
9232

9333
shelf_favorites: []
9434
debug_logging: true

env/includes/photoshopcc/shot.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Copyright (c) 2017 Shotgun Software Inc.
2+
#
3+
# CONFIDENTIAL AND PROPRIETARY
4+
#
5+
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
6+
# Source Code License included in this distribution package. See LICENSE.
7+
# By accessing, using, copying or modifying this work you indicate your
8+
# agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
9+
# not expressly granted therein are reserved by Shotgun Software Inc.
10+
#
11+
12+
# this configuration defines the behavior of the Photoshop Integration when it
13+
# is running in its shot level configuration
14+
15+
includes:
16+
- ../common/engines.yml
17+
- ../common/apps.yml
18+
- apps.yml
19+
20+
21+
photoshopcc.shot:
22+
apps:
23+
tk-multi-about: "@common.apps.tk-multi-about"
24+
25+
tk-multi-pythonconsole: "@common.apps.tk-multi-pythonconsole"
26+
27+
tk-multi-publish2: "@photoshopcc.apps.tk-multi-publish2"
28+
29+
tk-multi-loader2: "@photoshopcc.apps.tk-multi-loader2"
30+
31+
tk-multi-shotgunpanel: "@photoshopcc.apps.tk-multi-shotgunpanel"
32+
33+
shelf_favorites: []
34+
debug_logging: true
35+
location: "@common.engines.tk-photoshopcc.location"
36+

env/includes/photoshopcc/site.yml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
# is running in its project level configuration
1414

1515
includes:
16-
- ../common/frameworks.yml
1716
- ../common/engines.yml
1817
- ../common/apps.yml
19-
18+
- apps.yml
2019

2120
photoshopcc.site:
2221
apps:
@@ -49,29 +48,7 @@ photoshopcc.site:
4948
publish_filters: [["sg_status_list", "is_not", null]]
5049
location: "@common.apps.tk-multi-loader2.location"
5150

52-
tk-multi-shotgunpanel:
53-
shotgun_fields_hook: '{self}/shotgun_fields.py'
54-
actions_hook: '{self}/general_actions.py'
55-
action_mappings:
56-
PublishedFile:
57-
- actions: [publish_clipboard]
58-
filters: {}
59-
- actions: [add_as_a_layer, open_file]
60-
filters: {published_file_type: Photoshop Image}
61-
- actions: [add_as_a_layer, open_file]
62-
filters: {published_file_type: Rendered Image}
63-
- actions: [add_as_a_layer, open_file]
64-
filters: {published_file_type: Image}
65-
- actions: [add_as_a_layer, open_file]
66-
filters: {published_file_type: Texture}
67-
Task:
68-
- actions: [assign_task, task_to_ip]
69-
filters: {}
70-
Version:
71-
- actions: [quicktime_clipboard, sequence_clipboard]
72-
filters: {}
73-
enable_context_switch: true
74-
location: "@common.apps.tk-multi-shotgunpanel.location"
51+
tk-multi-shotgunpanel: '@photoshopcc.apps.tk-multi-shotgunpanel'
7552

7653
shelf_favorites: []
7754
debug_logging: true

env/includes/shell/apps.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright (c) 2017 Shotgun Software Inc.
2+
#
3+
# CONFIDENTIAL AND PROPRIETARY
4+
#
5+
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
6+
# Source Code License included in this distribution package. See LICENSE.
7+
# By accessing, using, copying or modifying this work you indicate your
8+
# agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
9+
# not expressly granted therein are reserved by Shotgun Software Inc.
10+
#
11+
12+
# this include configuration defines the common apps used by the Tank command
13+
# shared by several of its different configurations
14+
15+
16+
includes:
17+
- ../common/apps.yml
18+
- ../common/settings/tk-multi-publish2.yml
19+
20+
shell.apps.tk-multi-launchapp:
21+
use_software_entity: true
22+
location: "@common.apps.tk-multi-launchapp.location"
23+
24+
shell.apps.tk-multi-publish2:
25+
collector: "{config}/tk-multi-publish2/basic/collector.py"
26+
publish_plugins:
27+
- '@common.settings.tk-multi-publish2.publish_file'
28+
- '@common.settings.tk-multi-publish2.upload_version'
29+
location: "@common.apps.tk-multi-publish2.location"

env/includes/shell/project.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,13 @@
1313
# is running in all environments
1414

1515
includes:
16-
- ../common/frameworks.yml
17-
- ../common/apps.yml
18-
- ../common/settings/tk-multi-publish2.yml
16+
- apps.yml
1917

2018
shell.project:
2119
apps:
22-
tk-multi-launchapp:
23-
use_software_entity: true
24-
location: "@common.apps.tk-multi-launchapp.location"
20+
tk-multi-launchapp: '@shell.apps.tk-multi-launchapp'
2521

26-
tk-multi-publish2:
27-
collector: "{config}/tk-multi-publish2/basic/collector.py"
28-
publish_plugins:
29-
- '@common.settings.tk-multi-publish2.publish_file'
30-
- '@common.settings.tk-multi-publish2.upload_version'
31-
location: "@common.apps.tk-multi-publish2.location"
22+
tk-multi-publish2: '@shell.apps.tk-multi-publish2'
3223

3324
location:
3425
version: v0.5.1

env/includes/shell/shot.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright (c) 2017 Shotgun Software Inc.
2+
#
3+
# CONFIDENTIAL AND PROPRIETARY
4+
#
5+
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
6+
# Source Code License included in this distribution package. See LICENSE.
7+
# By accessing, using, copying or modifying this work you indicate your
8+
# agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
9+
# not expressly granted therein are reserved by Shotgun Software Inc.
10+
#
11+
12+
# this configuration defines the behavior of the Tank command when it
13+
# is running in a shot environment
14+
15+
includes:
16+
- apps.yml
17+
18+
shell.shot:
19+
apps:
20+
tk-multi-launchapp: '@shell.apps.tk-multi-launchapp'
21+
22+
tk-multi-publish2: '@shell.apps.tk-multi-publish2'
23+
24+
location:
25+
version: v0.5.1
26+
type: app_store
27+
name: tk-shell

env/includes/shell/site.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@
1313
# is running in all environments
1414

1515
includes:
16-
- ../common/frameworks.yml
17-
- ../common/apps.yml
16+
- apps.yml
1817

1918
shell.site:
20-
apps:
21-
tk-multi-launchapp:
22-
use_software_entity: true
23-
location: "@common.apps.tk-multi-launchapp.location"
19+
apps: '@shell.apps.tk-multi-launchapp'
2420

2521
location:
2622
version: v0.5.1

0 commit comments

Comments
 (0)