|
| 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 | + |
0 commit comments