Skip to content

Commit 2a08bec

Browse files
authored
SHOT-3556: Add environment for Playlist entity type and add VRED Review settings (#101)
1 parent 019eb50 commit 2a08bec

File tree

6 files changed

+56
-2
lines changed

6 files changed

+56
-2
lines changed

core/hooks/pick_environment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def execute(self, context, **kwargs):
2626
return "version"
2727
elif context.source_entity["type"] == "PublishedFile":
2828
return "publishedfile"
29+
elif context.source_entity["type"] == "Playlist":
30+
return "playlist"
2931

3032
if context.entity and context.step is None:
3133
# We have an entity but no step.

env/includes/shotgun/playlist.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright (c) 2020 Autodesk, 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 Autodesk, Inc.
10+
#
11+
12+
# this configuration defines the behavior of the Shotgun Desktop when it
13+
# is running in its playlist level configuration
14+
15+
includes:
16+
- ../common/engines.yml
17+
- ../common/apps.yml
18+
- ../common/frameworks.yml
19+
20+
shotgun.playlist:
21+
apps:
22+
settings.tk-shotgun-launchvredreview:
23+
deny_platforms: [ Mac, Linux ]
24+
hook_verify_install: "{self}/verify_install.py"
25+
hook_launch_publish: "{self}/shotgun_launch_vred.py"
26+
location: "@common.apps.tk-shotgun-launchvredreview.location"
27+
location: "@common.engines.tk-shotgun.location"

env/includes/shotgun/version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
includes:
1616
- ../common/engines.yml
1717
- ../common/apps.yml
18+
- ../common/frameworks.yml
1819
- ../common/settings/tk-multi-publish2.yml
1920

2021
shotgun.version:
@@ -35,7 +36,6 @@ shotgun.version:
3536

3637
settings.tk-shotgun-launchvredreview:
3738
deny_platforms: [ Mac, Linux ]
38-
viewer_extensions: [ vpb ]
3939
hook_verify_install: "{self}/verify_install.py"
4040
hook_launch_publish: "{self}/shotgun_launch_vred.py"
4141
location: "@common.apps.tk-shotgun-launchvredreview.location"

env/includes/vred/apps.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ vred.apps.tk-multi-loader2:
8080

8181
vred.apps.tk-multi-shotgunpanel:
8282
actions_hook: "{engine}/tk-multi-shotgunpanel/basic/scene_actions.py"
83+
shotgun_fields_hook: "{self}/shotgun_fields.py:{engine}/tk-multi-shotgunpanel/basic/shotgun_fields.py"
84+
shotgun_filters_hook: "{engine}/tk-multi-shotgunpanel/basic/shotgun_filters.py"
8385
action_mappings:
8486
PublishedFile:
8587
- actions: [import]
@@ -110,7 +112,7 @@ vred.apps.tk-multi-shotgunpanel:
110112
- actions: [assign_task, task_to_ip]
111113
filters: {}
112114
Version:
113-
- actions: [quicktime_clipboard, sequence_clipboard, add_to_playlist]
115+
- actions: [quicktime_clipboard, sequence_clipboard, add_to_playlist, load_for_review]
114116
filters: {}
115117
enable_context_switch: true
116118
location: "@common.apps.tk-multi-shotgunpanel.location"

env/includes/vred/project.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ vred.project:
3232
menu_favourites: []
3333
run_at_startup:
3434
- {app_instance: tk-multi-shotgunpanel, name: ''}
35+
accepted_published_file_types: [ VRED Scene, Alias File, Catpart File, Jt File, Igs File ]
3536
launch_builtin_plugins: [basic]
3637
automatic_context_switch: false

env/playlist.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (c) 2020 Autodesk, 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 Autodesk, Inc.
10+
#
11+
12+
description: Toolkit configuration to be loaded whenever an association with a
13+
Playlist has been established.
14+
15+
includes:
16+
- includes/shotgun/playlist.yml
17+
- includes/vred/project.yml
18+
19+
20+
engines:
21+
tk-shotgun: '@shotgun.playlist'
22+
tk-vred: '@vred.project'

0 commit comments

Comments
 (0)