Skip to content

Commit ac34901

Browse files
committed
Uni-25713-change-review-for-preview
1 parent 3517d1f commit ac34901

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

Assets/Integrations/Autodesk/maya/scripts/unityOneClick/commands.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def loadPlugin(self, plugin):
6161
return True
6262

6363
def loadDependencies(self):
64-
# GamePipeline plugin 'SendToUnitySelection' command used in Publish
64+
# GamePipeline plugin 'SendToUnitySelection' command used in export
6565
pluginsToLoad = ['GamePipeline', 'fbxmaya']
6666

6767
ext = "mll"
@@ -113,11 +113,11 @@ def setExists(self, setName):
113113

114114
class importCmd(BaseCommand):
115115
"""
116-
Import FBX file from Unity Project and autoconfigure for publishing
116+
Import FBX file from Unity Project and autoconfigure for exporting
117117
118118
@ingroup UnityCommands
119119
"""
120-
kLabel = 'Import FBX file from Unity Project and auto-configure for publishing'
120+
kLabel = 'Import FBX file from Unity Project and auto-configure for exporting'
121121
kShortLabel = 'Import'
122122
kCmdName = "{}Import".format(version.pluginPrefix())
123123
kScriptCommand = 'import maya.cmds;maya.cmds.{0}()'.format(kCmdName)
@@ -236,17 +236,17 @@ def invoke(cls):
236236
strCmd = '{0};'.format(cls.kCmdName)
237237
maya.mel.eval(strCmd) # @UndefinedVariable
238238

239-
class reviewCmd(BaseCommand):
239+
class previewCmd(BaseCommand):
240240
"""
241-
Review Model in Unity
241+
Preview Model in Unity Window
242242
243243
@ingroup UnityCommands
244244
"""
245-
kLabel = 'Review Model in Unity'
246-
kShortLabel = 'Review'
247-
kCmdName = "{}Review".format(version.pluginPrefix())
245+
kLabel = 'Preview Model in Unity window'
246+
kShortLabel = 'Preview'
247+
kCmdName = "{}Preview".format(version.pluginPrefix())
248248
kScriptCommand = 'import maya.cmds;maya.cmds.{0}()'.format(kCmdName)
249-
kRuntimeCommand = "UnityOneClickReview"
249+
kRuntimeCommand = "UnityOneClickPreview"
250250

251251
def __init__(self):
252252
super(self.__class__, self).__init__()
@@ -326,17 +326,17 @@ def invoke(cls):
326326
strCmd = '{0};'.format(cls.kCmdName)
327327
maya.mel.eval(strCmd) # @UndefinedVariable
328328

329-
class publishCmd(BaseCommand):
329+
class exportCmd(BaseCommand):
330330
"""
331-
Publish Model in Unity
331+
Export Model to Unity
332332
333333
@ingroup UnityCommands
334334
"""
335-
kLabel = 'Publish Model to Unity'
336-
kShortLabel = 'Publish'
337-
kCmdName = "{}Publish".format(version.pluginPrefix())
335+
kLabel = 'Export Model to Unity'
336+
kShortLabel = 'Export'
337+
kCmdName = "{}Export".format(version.pluginPrefix())
338338
kScriptCommand = 'import maya.cmds;maya.cmds.{0}()'.format(kCmdName)
339-
kRuntimeCommand = "UnityOneClickPublish"
339+
kRuntimeCommand = "UnityOneClickExport"
340340

341341
def __init__(self):
342342
super(self.__class__, self).__init__()
@@ -394,11 +394,11 @@ def invoke(cls):
394394

395395
class configureCmd(BaseCommand):
396396
"""
397-
Configure Maya Scene for Reviewing and Publishing to Unity
397+
Configure Maya Scene for previewing and exporting to Unity
398398
399399
@ingroup UnityCommands
400400
"""
401-
kLabel = 'Configure Maya to publish and review to a Unity Project'
401+
kLabel = 'Configure Maya to preview and export to a Unity Project'
402402
kShortLabel = 'Configure'
403403
kCmdName = "{}Configure".format(version.pluginPrefix())
404404
kScriptCommand = 'import maya.cmds;maya.cmds.{0}()'.format(kCmdName)
@@ -444,8 +444,8 @@ def register(pluginFn):
444444
@param pluginFn (MFnPlugin): plugin object passed to initializePlugin
445445
"""
446446
pluginFn.registerCommand(importCmd.kCmdName, importCmd.creator, importCmd.syntaxCreator)
447-
pluginFn.registerCommand(reviewCmd.kCmdName, reviewCmd.creator, reviewCmd.syntaxCreator)
448-
pluginFn.registerCommand(publishCmd.kCmdName, publishCmd.creator, publishCmd.syntaxCreator)
447+
pluginFn.registerCommand(previewCmd.kCmdName, previewCmd.creator, previewCmd.syntaxCreator)
448+
pluginFn.registerCommand(exportCmd.kCmdName, exportCmd.creator, exportCmd.syntaxCreator)
449449
pluginFn.registerCommand(configureCmd.kCmdName, configureCmd.creator, configureCmd.syntaxCreator)
450450

451451
return
@@ -456,8 +456,8 @@ def unregister(pluginFn):
456456
@param pluginFn (MFnPlugin): plugin object passed to uninitializePlugin
457457
"""
458458
pluginFn.deregisterCommand(importCmd.kCmdName)
459-
pluginFn.deregisterCommand(reviewCmd.kCmdName)
460-
pluginFn.deregisterCommand(publishCmd.kCmdName)
459+
pluginFn.deregisterCommand(previewCmd.kCmdName)
460+
pluginFn.deregisterCommand(exportCmd.kCmdName)
461461
pluginFn.deregisterCommand(configureCmd.kCmdName)
462462
return
463463

@@ -487,23 +487,23 @@ class importCmdTestCase(BaseCmdTest):
487487
"""
488488
__cmd__ = importCmd
489489

490-
class reviewCmdTestCase(BaseCmdTest):
491-
"""UnitTest for testing the reviewCmd command
490+
class previewCmdTestCase(BaseCmdTest):
491+
"""UnitTest for testing the previewCmd command
492492
"""
493-
__cmd__ = reviewCmd
493+
__cmd__ = previewCmd
494494

495-
class publishCmdTestCase(BaseCmdTest):
496-
"""UnitTest for testing the publishCmd command
495+
class exportCmdTestCase(BaseCmdTest):
496+
"""UnitTest for testing the exportCmd command
497497
"""
498-
__cmd__ = publishCmd
498+
__cmd__ = exportCmd
499499

500500
class configureCmdTestCase(BaseCmdTest):
501501
"""UnitTest for testing the configureCmd command
502502
"""
503503
__cmd__ = configureCmd
504504

505505
# NOTE: update this for test discovery
506-
test_cases = (importCmdTestCase, reviewCmdTestCase, publishCmdTestCase, configureCmdTestCase,)
506+
test_cases = (importCmdTestCase, previewCmdTestCase, exportCmdTestCase, configureCmdTestCase,)
507507

508508
def load_tests(loader, tests, pattern):
509509
suite = unittest.TestSuite()

Assets/Integrations/Autodesk/maya/scripts/unityOneClick/ui.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,16 @@ def installMenu():
9696
image=commands.importCmd.iconPath(),
9797
version=whatsNewVersion())
9898
maya.cmds.menuItem(parent=kMenuName,
99-
label=commands.reviewCmd.kShortLabel,
100-
annotation=commands.reviewCmd.kLabel,
101-
command=commands.reviewCmd.kScriptCommand,
102-
image=commands.importCmd.iconPath(),
99+
label=commands.previewCmd.kShortLabel,
100+
annotation=commands.previewCmd.kLabel,
101+
command=commands.previewCmd.kScriptCommand,
102+
image=commands.previewCmd.iconPath(),
103103
version=whatsNewVersion())
104104
maya.cmds.menuItem(parent=kMenuName,
105-
label=commands.publishCmd.kShortLabel,
106-
annotation=commands.publishCmd.kLabel,
107-
command=commands.publishCmd.kScriptCommand,
108-
image=commands.importCmd.iconPath(),
105+
label=commands.exportCmd.kShortLabel,
106+
annotation=commands.exportCmd.kLabel,
107+
command=commands.exportCmd.kScriptCommand,
108+
image=commands.exportCmd.iconPath(),
109109
version=whatsNewVersion())
110110

111111
def uninstallMenu():

0 commit comments

Comments
 (0)