Skip to content

Commit b445646

Browse files
authored
SG-9614 Adds launch folder app to basic config on PublishedFiles
Adds the launch folder app to the `PublishedFile` entity as an action menu item. As a consequence of splitting `PublishedFile` out of the generic project environment, I took advantage of that and removed the launch app from publishedfile. Closes #66
1 parent 94cb4b1 commit b445646

File tree

4 files changed

+35
-0
lines changed

4 files changed

+35
-0
lines changed

core/hooks/pick_environment.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ class PickEnvironment(Hook):
2121

2222
def execute(self, context, **kwargs):
2323

24+
if context.source_entity and context.source_entity["type"] == "PublishedFile":
25+
return "publishedfile"
26+
2427
if context.entity and context.entity["type"] == "Shot":
2528
return "shot"
2629

env/includes/common/apps.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ common.apps.tk-nuke-quickreview.location:
6262
name: tk-nuke-quickreview
6363
version: v1.0.3
6464

65+
common.apps.tk-shotgun-launchfolder.location:
66+
type: app_store
67+
name: tk-shotgun-launchfolder
68+
version: v0.2.1
69+
6570
# help urls
6671

6772
common.apps.tk-multi-publish2.help_url: https://support.shotgunsoftware.com/hc/en-us/articles/115000068574-Integrations-User-Guide#The%20Publisher

env/includes/shotgun/all.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,11 @@ shotgun.all:
3535
location: "@common.apps.tk-multi-launchapp.location"
3636

3737
location: "@common.engines.tk-shotgun.location"
38+
39+
shotgun.publishedfile:
40+
apps:
41+
42+
settings.tk-shotgun-launchfolder:
43+
location: "@common.apps.tk-shotgun-launchfolder.location"
44+
45+
location: "@common.engines.tk-shotgun.location"

env/publishedfile.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright (c) 2016 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+
description: Toolkit configuration to be loaded whenever an association with a
13+
publishedfile has been established.
14+
15+
includes:
16+
- includes/shotgun/all.yml
17+
18+
engines:
19+
tk-shotgun: '@shotgun.publishedfile'

0 commit comments

Comments
 (0)