Skip to content

Commit 34d4ef4

Browse files
authored
Merge pull request #153 from Unity-Technologies/Uni-25713-change-review-for-preview
Uni-25713-change-review-for-preview
2 parents 3e424af + ac34901 commit 34d4ef4

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__()
@@ -337,17 +337,17 @@ def invoke(cls):
337337
strCmd = '{0};'.format(cls.kCmdName)
338338
maya.mel.eval(strCmd) # @UndefinedVariable
339339

340-
class publishCmd(BaseCommand):
340+
class exportCmd(BaseCommand):
341341
"""
342-
Publish Model in Unity
342+
Export Model to Unity
343343
344344
@ingroup UnityCommands
345345
"""
346-
kLabel = 'Publish Model to Unity'
347-
kShortLabel = 'Publish'
348-
kCmdName = "{}Publish".format(version.pluginPrefix())
346+
kLabel = 'Export Model to Unity'
347+
kShortLabel = 'Export'
348+
kCmdName = "{}Export".format(version.pluginPrefix())
349349
kScriptCommand = 'import maya.cmds;maya.cmds.{0}()'.format(kCmdName)
350-
kRuntimeCommand = "UnityOneClickPublish"
350+
kRuntimeCommand = "UnityOneClickExport"
351351

352352
def __init__(self):
353353
super(self.__class__, self).__init__()
@@ -405,11 +405,11 @@ def invoke(cls):
405405

406406
class configureCmd(BaseCommand):
407407
"""
408-
Configure Maya Scene for Reviewing and Publishing to Unity
408+
Configure Maya Scene for previewing and exporting to Unity
409409
410410
@ingroup UnityCommands
411411
"""
412-
kLabel = 'Configure Maya to publish and review to a Unity Project'
412+
kLabel = 'Configure Maya to preview and export to a Unity Project'
413413
kShortLabel = 'Configure'
414414
kCmdName = "{}Configure".format(version.pluginPrefix())
415415
kScriptCommand = 'import maya.cmds;maya.cmds.{0}()'.format(kCmdName)
@@ -455,8 +455,8 @@ def register(pluginFn):
455455
@param pluginFn (MFnPlugin): plugin object passed to initializePlugin
456456
"""
457457
pluginFn.registerCommand(importCmd.kCmdName, importCmd.creator, importCmd.syntaxCreator)
458-
pluginFn.registerCommand(reviewCmd.kCmdName, reviewCmd.creator, reviewCmd.syntaxCreator)
459-
pluginFn.registerCommand(publishCmd.kCmdName, publishCmd.creator, publishCmd.syntaxCreator)
458+
pluginFn.registerCommand(previewCmd.kCmdName, previewCmd.creator, previewCmd.syntaxCreator)
459+
pluginFn.registerCommand(exportCmd.kCmdName, exportCmd.creator, exportCmd.syntaxCreator)
460460
pluginFn.registerCommand(configureCmd.kCmdName, configureCmd.creator, configureCmd.syntaxCreator)
461461

462462
return
@@ -467,8 +467,8 @@ def unregister(pluginFn):
467467
@param pluginFn (MFnPlugin): plugin object passed to uninitializePlugin
468468
"""
469469
pluginFn.deregisterCommand(importCmd.kCmdName)
470-
pluginFn.deregisterCommand(reviewCmd.kCmdName)
471-
pluginFn.deregisterCommand(publishCmd.kCmdName)
470+
pluginFn.deregisterCommand(previewCmd.kCmdName)
471+
pluginFn.deregisterCommand(exportCmd.kCmdName)
472472
pluginFn.deregisterCommand(configureCmd.kCmdName)
473473
return
474474

@@ -498,23 +498,23 @@ class importCmdTestCase(BaseCmdTest):
498498
"""
499499
__cmd__ = importCmd
500500

501-
class reviewCmdTestCase(BaseCmdTest):
502-
"""UnitTest for testing the reviewCmd command
501+
class previewCmdTestCase(BaseCmdTest):
502+
"""UnitTest for testing the previewCmd command
503503
"""
504-
__cmd__ = reviewCmd
504+
__cmd__ = previewCmd
505505

506-
class publishCmdTestCase(BaseCmdTest):
507-
"""UnitTest for testing the publishCmd command
506+
class exportCmdTestCase(BaseCmdTest):
507+
"""UnitTest for testing the exportCmd command
508508
"""
509-
__cmd__ = publishCmd
509+
__cmd__ = exportCmd
510510

511511
class configureCmdTestCase(BaseCmdTest):
512512
"""UnitTest for testing the configureCmd command
513513
"""
514514
__cmd__ = configureCmd
515515

516516
# NOTE: update this for test discovery
517-
test_cases = (importCmdTestCase, reviewCmdTestCase, publishCmdTestCase, configureCmdTestCase,)
517+
test_cases = (importCmdTestCase, previewCmdTestCase, exportCmdTestCase, configureCmdTestCase,)
518518

519519
def load_tests(loader, tests, pattern):
520520
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)