Skip to content

Commit 8f53946

Browse files
committed
Updated Unreal publish icons and descriptions
1 parent acdcf28 commit 8f53946

File tree

10 files changed

+36
-94
lines changed

10 files changed

+36
-94
lines changed

env/includes/settings/tk-multi-publish2.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ settings.tk-multi-publish2.mari.asset_step:
160160

161161
# asset step
162162
settings.tk-multi-publish2.maya.asset_step:
163-
collector: "{self}/collector.py:{engine}/tk-multi-publish2/basic/collector.py"
163+
collector: "{self}/collector.py:{config}/tk-multi-publish2/tk-maya/basic/collector.py"
164164
collector_settings:
165165
Work Template: maya_asset_work
166166
publish_plugins:
@@ -182,7 +182,7 @@ settings.tk-multi-publish2.maya.asset_step:
182182
settings:
183183
Work Template: maya_asset_fbx_export
184184
Publish Template: maya_asset_fbx_publish
185-
- name: Render Turntable in UE4
185+
- name: Publish and Submit for Review
186186
hook: "{self}/publish_file.py:{config}/tk-multi-publish2/tk-maya/basic/publish_turntable.py"
187187
settings:
188188
Work Template: maya_ue4_turntable_render
@@ -416,11 +416,11 @@ settings.tk-multi-publish2.unreal.project:
416416
- name: Publish to Shotgun
417417
hook: "{self}/publish_file.py:{engine}/tk-multi-publish2/basic/publish_session.py"
418418
settings: {}
419-
- name: Publish to Shotgun
419+
- name: Export FBX and Publish to Shotgun
420420
hook: "{self}/publish_file.py:{engine}/tk-multi-publish2/basic/publish_asset.py"
421421
settings:
422422
Publish Template: unreal_asset_publish
423-
- name: Publish to Shotgun
423+
- name: Render Movie and Submit for Review
424424
hook: "{self}/publish_file.py:{engine}/tk-multi-publish2/basic/publish_movie.py"
425425
settings:
426426
Work Template: unreal_movie_render

hooks/tk-multi-publish2/tk-maya/basic/collector.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,32 @@ def collect_current_maya_session(self, settings, parent_item):
159159
fbx_display_name
160160
)
161161

162+
# get the icon path to display for this item
163+
icon_path = os.path.join(
164+
self.disk_location,
165+
os.pardir,
166+
"icons",
167+
"fbx.png"
168+
)
169+
162170
fbx_item.set_icon_from_path(icon_path)
163171

164172
# Add an Unreal turntable render item
165173
turntable_item = session_item.create_item(
166174
"maya.turntable",
167-
"Unreal turntable render",
168-
filename + " turntable"
175+
"Turntable",
176+
"Render Asset Turntable in Unreal"
169177
)
178+
179+
# get the icon path to display for this item
180+
icon_path = os.path.join(
181+
self.disk_location,
182+
os.pardir,
183+
"icons",
184+
"unreal.png"
185+
)
186+
187+
turntable_item.set_icon_from_path(icon_path)
170188

171189
# discover the project root which helps in discovery of other
172190
# publishable items

hooks/tk-multi-publish2/tk-maya/basic/publish_fbx.py

Lines changed: 5 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -40,50 +40,11 @@ def description(self):
4040
loader_url = "https://support.shotgunsoftware.com/hc/en-us/articles/219033078"
4141

4242
return """
43-
Publishes the file to Shotgun. A <b>Publish</b> entry will be
44-
created in Shotgun which will include a reference to the file's current
45-
path on disk. If a publish template is configured, a copy of the
46-
current session will be copied to the publish template path which
47-
will be the file that is published. Other users will be able to access
48-
the published file via the <b><a href='%s'>Loader</a></b> so long as
49-
they have access to the file's location on disk.
50-
51-
If the session has not been saved, validation will fail and a button
52-
will be provided in the logging output to save the file.
53-
54-
<h3>File versioning</h3>
55-
If the filename contains a version number, the process will bump the
56-
file to the next version after publishing.
57-
58-
The <code>version</code> field of the resulting <b>Publish</b> in
59-
Shotgun will also reflect the version number identified in the filename.
60-
The basic worklfow recognizes the following version formats by default:
61-
62-
<ul>
63-
<li><code>filename.v###.ext</code></li>
64-
<li><code>filename_v###.ext</code></li>
65-
<li><code>filename-v###.ext</code></li>
66-
</ul>
67-
68-
After publishing, if a version number is detected in the work file, the
69-
work file will automatically be saved to the next incremental version
70-
number. For example, <code>filename.v001.ext</code> will be published
71-
and copied to <code>filename.v002.ext</code>
72-
73-
If the next incremental version of the file already exists on disk, the
74-
validation step will produce a warning, and a button will be provided in
75-
the logging output which will allow saving the session to the next
76-
available version number prior to publishing.
77-
78-
<br><br><i>NOTE: any amount of version number padding is supported. for
79-
non-template based workflows.</i>
80-
81-
<h3>Overwriting an existing publish</h3>
82-
In non-template workflows, a file can be published multiple times,
83-
however only the most recent publish will be available to other users.
84-
Warnings will be provided during validation if there are previous
85-
publishes.
86-
""" % (loader_url,)
43+
<p>This plugin exports the Asset for the current session as an FBX file.
44+
The scene will be exported to the path defined by this plugin's configured
45+
"Publish Template" setting. The resulting FBX file can then be imported
46+
into Unreal Engine via the Loader.</p>
47+
"""
8748

8849
@property
8950
def settings(self):

hooks/tk-multi-publish2/tk-maya/basic/publish_turntable.py

Lines changed: 7 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -55,50 +55,13 @@ def description(self):
5555
loader_url = "https://support.shotgunsoftware.com/hc/en-us/articles/219033078"
5656

5757
return """
58-
Publishes the file to Shotgun. A <b>Publish</b> entry will be
59-
created in Shotgun which will include a reference to the file's current
60-
path on disk. If a publish template is configured, a copy of the
61-
current session will be copied to the publish template path which
62-
will be the file that is published. Other users will be able to access
63-
the published file via the <b><a href='%s'>Loader</a></b> so long as
64-
they have access to the file's location on disk.
65-
66-
If the session has not been saved, validation will fail and a button
67-
will be provided in the logging output to save the file.
68-
69-
<h3>File versioning</h3>
70-
If the filename contains a version number, the process will bump the
71-
file to the next version after publishing.
72-
73-
The <code>version</code> field of the resulting <b>Publish</b> in
74-
Shotgun will also reflect the version number identified in the filename.
75-
The basic worklfow recognizes the following version formats by default:
76-
77-
<ul>
78-
<li><code>filename.v###.ext</code></li>
79-
<li><code>filename_v###.ext</code></li>
80-
<li><code>filename-v###.ext</code></li>
81-
</ul>
82-
83-
After publishing, if a version number is detected in the work file, the
84-
work file will automatically be saved to the next incremental version
85-
number. For example, <code>filename.v001.ext</code> will be published
86-
and copied to <code>filename.v002.ext</code>
87-
88-
If the next incremental version of the file already exists on disk, the
89-
validation step will produce a warning, and a button will be provided in
90-
the logging output which will allow saving the session to the next
91-
available version number prior to publishing.
92-
93-
<br><br><i>NOTE: any amount of version number padding is supported. for
94-
non-template based workflows.</i>
95-
96-
<h3>Overwriting an existing publish</h3>
97-
In non-template workflows, a file can be published multiple times,
98-
however only the most recent publish will be available to other users.
99-
Warnings will be provided during validation if there are previous
100-
publishes.
101-
""" % (loader_url,)
58+
<p>This plugin renders a turntable of the Asset for the current session
59+
in Unreal Engine. The Asset will be exported to FBX and imported into
60+
an Unreal Project for rendering turntables. A command line Unreal render
61+
will then be initiated and output to a templated location on disk. Then,
62+
the turntable render will be published to Shotgun and submitted for review
63+
as a Version.</p>
64+
"""
10265

10366
@property
10467
def settings(self):
48 KB
Loading
78.6 KB
Loading
39 KB
Loading
1.63 KB
Loading
26.1 KB
Loading
78.6 KB
Loading

0 commit comments

Comments
 (0)