Skip to content

Commit 95aec22

Browse files
authored
6647 update reuse (#5)
Added a script to update an existing default2 config with the Unreal integration. Added supporting files to update an existing default2 config with the Unreal integration.
1 parent 1cccb30 commit 95aec22

File tree

12 files changed

+623
-2
lines changed

12 files changed

+623
-2
lines changed

hooks/tk-multi-publish2/basic/publish_movie.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ def validate(self, settings, item):
303303

304304
# Add the map name and level sequence to fields
305305
world_name = unreal_map.get_name()
306-
fields["world"] = world_name
307-
fields["level_sequence"] = asset_name
306+
fields["ue_world"] = world_name
307+
fields["ue_level_sequence"] = asset_name
308308

309309
# Stash the level sequence and map paths in properties for the render
310310
item.properties["unreal_asset_path"] = asset_path
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file is a placeholder to ensure that the parent folder is preserved and not deleted by git.
2+
# Any file named 'placeholder' will not be copied across when folders are created.
3+
# Note: You can which files should be ignored when folders are created in the ignore_files file,
4+
# located in the schema folder.
5+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file is a placeholder to ensure that the parent folder is preserved and not deleted by git.
2+
# Any file named 'placeholder' will not be copied across when folders are created.
3+
# Note: You can which files should be ignored when folders are created in the ignore_files file,
4+
# located in the schema folder.
5+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file is a placeholder to ensure that the parent folder is preserved and not deleted by git.
2+
# Any file named 'placeholder' will not be copied across when folders are created.
3+
# Note: You can which files should be ignored when folders are created in the ignore_files file,
4+
# located in the schema folder.
5+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file is based on templates provided and copyrighted by Autodesk, Inc.
2+
# This file has been modified by Epic Games, Inc. and is subject to the license
3+
# file included in this repository.
4+
5+
# unrealqt - PySide build for Unreal
6+
frameworks:
7+
tk-framework-unrealqt_v1.x.x:
8+
location:
9+
type: github_release
10+
organization: ue4plugins
11+
repository: tk-framework-unrealqt
12+
version: v1.1.0
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This file is based on templates provided and copyrighted by Autodesk, Inc.
2+
# This file has been modified by Epic Games, Inc. and is subject to the license
3+
# file included in this repository.
4+
5+
includes:
6+
- ../../app_locations.yml
7+
8+
settings.tk-multi-loader2.unreal:
9+
action_mappings:
10+
Motion Builder FBX: [import_content, import_level]
11+
Maya FBX: [import_content]
12+
actions_hook: '{engine}/tk-multi-loader2/tk-unreal_actions.py'
13+
entities:
14+
- caption: Assets
15+
entity_type: Asset
16+
filters:
17+
- [project, is, '{context.project}']
18+
hierarchy: [sg_asset_type, code]
19+
- caption: Shots
20+
entity_type: Shot
21+
filters:
22+
- [project, is, '{context.project}']
23+
hierarchy: [sg_sequence, code]
24+
- caption: My Tasks
25+
type: Query
26+
entity_type: Task
27+
filters:
28+
- [project, is, '{context.project}']
29+
- [task_assignees, is, '{context.user}']
30+
hierarchy: [entity, content]
31+
publish_filters: [["sg_status_list", "is_not", null]]
32+
location: "@apps.tk-multi-loader2.location"
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# This file is based on templates provided and copyrighted by Autodesk, Inc.
2+
# This file has been modified by Epic Games, Inc. and is subject to the license
3+
# file included in this repository.
4+
5+
################################################################################
6+
7+
publish_help_url: &help_url "https://support.shotgunsoftware.com/hc/en-us/articles/115000068574-Integrations-User-Guide#The%20Publisher"
8+
9+
includes:
10+
- ../../app_locations.yml
11+
12+
settings.tk-multi-publish2.unreal.project:
13+
collector: "{self}/collector.py:{engine}/tk-multi-publish2/basic/collector.py"
14+
publish_plugins:
15+
- name: Publish to ShotGrid
16+
hook: "{self}/publish_file.py"
17+
settings: {}
18+
- name: Upload for review
19+
hook: "{self}/upload_version.py"
20+
settings: {}
21+
- name: Publish to ShotGrid
22+
hook: "{self}/publish_file.py:{engine}/tk-multi-publish2/basic/publish_session.py"
23+
settings: {}
24+
- name: Export FBX and Publish to ShotGrid
25+
hook: "{self}/publish_file.py:{engine}/tk-multi-publish2/basic/publish_asset.py"
26+
settings:
27+
Publish Template: unreal.asset_publish
28+
- name: Render Movie and Submit for Review
29+
hook: "{self}/publish_file.py:{engine}/tk-multi-publish2/basic/publish_movie.py"
30+
settings:
31+
Publish Template: unreal.movie_publish
32+
help_url: *help_url
33+
location: "@apps.tk-multi-publish2.location"
34+
35+
settings.tk-multi-publish2.maya.asset_step.unreal:
36+
collector: "{self}/collector.py:{engine}/tk-multi-publish2/basic/collector.py:{tk-framework-unrealqt_v1.x.x}/tk-multi-publish2/tk-maya/basic/collector.py"
37+
collector_settings:
38+
Work Template: maya_asset_work
39+
publish_plugins:
40+
- name: Publish to ShotGrid
41+
hook: "{self}/publish_file.py"
42+
settings: {}
43+
- name: Upload for review
44+
hook: "{self}/upload_version.py"
45+
settings: {}
46+
- name: Begin file versioning
47+
hook: "{engine}/tk-multi-publish2/basic/start_version_control.py"
48+
settings: {}
49+
- name: Publish to ShotGrid
50+
hook: "{self}/publish_file.py:{engine}/tk-multi-publish2/basic/publish_session.py"
51+
settings:
52+
Publish Template: maya_asset_publish
53+
- name: Publish to ShotGrid
54+
hook: "{self}/publish_file.py:{engine}/tk-multi-publish2/basic/publish_session_geometry.py"
55+
settings:
56+
Publish Template: asset_alembic_cache
57+
- name: Publish FBX to ShotGrid
58+
hook: "{self}/publish_file.py:{tk-framework-unrealqt_v1.x.x}/tk-multi-publish2/tk-maya/basic/publish_fbx.py"
59+
settings:
60+
Publish Template: unreal.maya_asset_fbx_publish
61+
- name: Publish and Submit for Review
62+
hook: "{self}/publish_file.py:{tk-framework-unrealqt_v1.x.x}/tk-multi-publish2/tk-maya/basic/publish_turntable.py"
63+
settings:
64+
Work Template: unreal.maya_turntable_render
65+
Publish Template: unreal.maya_turntable_publish
66+
Unreal Engine Version: "4.26"
67+
Unreal Project Path Template: "{self}/resources/ueprojects/{unreal_engine_version}/turntable/turntable.uproject"
68+
Turntable Map Path: "/Game/turntable/level/turntable.umap"
69+
Sequence Path: "/Game/turntable/sequence/turntable_sequence.turntable_sequence"
70+
Turntable Assets Path: "/Game/maya_turntable_assets"
71+
help_url: *help_url
72+
location: "@apps.tk-multi-publish2.location"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This file is based on templates provided and copyrighted by Autodesk, Inc.
2+
# This file has been modified by Epic Games, Inc. and is subject to the license
3+
# file included in this repository.
4+
5+
includes:
6+
- ../../app_locations.yml
7+
8+
settings.tk-multi-shotgunpanel.unreal:
9+
actions_hook: '{self}/general_actions.py:{engine}/tk-multi-shotgunpanel/tk-unreal_actions.py'
10+
action_mappings: {}
11+
enable_context_switch: true
12+
location: "@apps.tk-multi-shotgunpanel.location"
13+
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This file is based on templates provided and copyrighted by Autodesk, Inc.
2+
# This file has been modified by Epic Games, Inc. and is subject to the license
3+
# file included in this repository.
4+
5+
################################################################################
6+
7+
includes:
8+
- ../frameworks.yml
9+
- ../../app_locations.yml
10+
- ../tk-unreal-location.yml
11+
- ./tk-multi-loader2.yml
12+
- ./tk-multi-publish2.yml
13+
- ../../settings/tk-multi-screeningroom.yml
14+
- ./tk-multi-shotgunpanel.yml
15+
16+
################################################################################
17+
18+
# asset_step
19+
settings.tk-unreal.asset_step:
20+
apps:
21+
tk-multi-about:
22+
location: "@apps.tk-multi-about.location"
23+
tk-multi-pythonconsole:
24+
location: "@apps.tk-multi-pythonconsole.location"
25+
location: "@tk-unreal.location"
26+
menu_favourites: []
27+
run_at_startup: []
28+
launch_builtin_plugins: [basic]
29+
automatic_context_switch: false
30+
31+
# project
32+
settings.tk-unreal.project:
33+
apps:
34+
tk-multi-about:
35+
location: "@apps.tk-multi-about.location"
36+
tk-multi-loader2: "@settings.tk-multi-loader2.unreal"
37+
tk-multi-publish2: "@settings.tk-multi-publish2.unreal.project"
38+
tk-multi-pythonconsole:
39+
location: "@apps.tk-multi-pythonconsole.location"
40+
tk-multi-shotgunpanel: "@settings.tk-multi-shotgunpanel.unreal"
41+
location: "@tk-unreal.location"
42+
menu_favourites: []
43+
run_at_startup:
44+
- {app_instance: tk-multi-shotgunpanel, name: ''}
45+
launch_builtin_plugins: [basic]
46+
automatic_context_switch: false
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# This file is based on templates provided and copyrighted by Autodesk, Inc.
2+
# This file has been modified by Epic Games, Inc. and is subject to the license
3+
# file included in this repository.
4+
5+
keys:
6+
# These are used by the Loader in Unreal
7+
ue_sg_asset_type:
8+
type: str
9+
shotgun_entity_type: Asset
10+
shotgun_field_name: sg_asset_type
11+
ue_sg_asset_name:
12+
type: str
13+
shotgun_entity_type: Asset
14+
shotgun_field_name: code
15+
ue_sg_shot_name:
16+
type: str
17+
shotgun_entity_type: Shot
18+
shotgun_field_name: code
19+
ue_sg_sequence_name:
20+
type: str
21+
shotgun_entity_type: Shot
22+
shotgun_field_name: sg_sequence
23+
# These are used by the Movie Publish in Unreal
24+
ue_level_sequence:
25+
type: str
26+
ue_world:
27+
type: str
28+
# Movie extension for UE, avi on Windows, mov on other platforms
29+
ue_mov_ext:
30+
type: str
31+
choices:
32+
mov: Quicktime Movie (.mov)
33+
avi: Audio Video Interleaved (.avi)
34+
35+
paths:
36+
#
37+
# Unreal
38+
#
39+
40+
# level sequence review output from unreal
41+
unreal.movie_publish:
42+
definition: '[sequences/{Sequence}/][{Shot}/]editorial/{YYYY}_{MM}_{DD}/unreal/{ue_level_sequence}_{ue_world}.v{version}.{ue_mov_ext}'
43+
unreal_shot_publish:
44+
definition: '@shot_root/publish/unreal/{name}.v{version}.nk'
45+
# The location of FBX exports for Unreal
46+
unreal.maya_asset_fbx_publish:
47+
definition: '@asset_root/publish/fbx/{name}.v{version}.fbx'
48+
# The location of turntable review output rendered in Unreal
49+
unreal.maya_turntable_render:
50+
definition: '@asset_root/work/images/{name}_turntable_v{version}.{ue_mov_ext}'
51+
unreal.maya_turntable_publish:
52+
definition: '@asset_root/review/{Asset}_{name}_turntable_v{version}.{ue_mov_ext}'
53+
# Placeholder location for static mesh assets exported from Unreal
54+
# Hook implementation intended to be a starting point for a pipeline
55+
# No context info used in template, developers expected to further customize
56+
unreal.asset_publish:
57+
definition: 'assets/unrealdemo/exports/{YYYY}_{MM}_{DD}/{name}.fbx'
58+
strings:
59+
# entity-specific templates for importing files into the Unreal content browser
60+
# template logic is defined in Python, not settings:
61+
# tk-unreal/hooks/tk-multi-loader2/tk-unreal_actions.py
62+
unreal_loader_asset_path: "/Game/Assets/{ue_sg_asset_type}/{ue_sg_asset_name}/"
63+
unreal_loader_asset_name: "{ue_sg_asset_name}_{name}"
64+
unreal_loader_shot_path: "/Game/Cinematics/Sequences/{ue_sg_sequence_name}/{ue_sg_shot_name}/"
65+
unreal_loader_shot_name: "{ue_sg_shot_name}_{name}"
66+
unreal_loader_project_path: "/Game/Assets/"
67+
unreal_loader_project_name: "{name}"

0 commit comments

Comments
 (0)