@@ -61,7 +61,7 @@ def loadPlugin(self, plugin):
61
61
return True
62
62
63
63
def loadDependencies (self ):
64
- # GamePipeline plugin 'SendToUnitySelection' command used in Publish
64
+ # GamePipeline plugin 'SendToUnitySelection' command used in export
65
65
pluginsToLoad = ['GamePipeline' , 'fbxmaya' ]
66
66
67
67
ext = "mll"
@@ -113,11 +113,11 @@ def setExists(self, setName):
113
113
114
114
class importCmd (BaseCommand ):
115
115
"""
116
- Import FBX file from Unity Project and autoconfigure for publishing
116
+ Import FBX file from Unity Project and autoconfigure for exporting
117
117
118
118
@ingroup UnityCommands
119
119
"""
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 '
121
121
kShortLabel = 'Import'
122
122
kCmdName = "{}Import" .format (version .pluginPrefix ())
123
123
kScriptCommand = 'import maya.cmds;maya.cmds.{0}()' .format (kCmdName )
@@ -236,17 +236,17 @@ def invoke(cls):
236
236
strCmd = '{0};' .format (cls .kCmdName )
237
237
maya .mel .eval (strCmd ) # @UndefinedVariable
238
238
239
- class reviewCmd (BaseCommand ):
239
+ class previewCmd (BaseCommand ):
240
240
"""
241
- Review Model in Unity
241
+ Preview Model in Unity Window
242
242
243
243
@ingroup UnityCommands
244
244
"""
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 ())
248
248
kScriptCommand = 'import maya.cmds;maya.cmds.{0}()' .format (kCmdName )
249
- kRuntimeCommand = "UnityOneClickReview "
249
+ kRuntimeCommand = "UnityOneClickPreview "
250
250
251
251
def __init__ (self ):
252
252
super (self .__class__ , self ).__init__ ()
@@ -337,17 +337,17 @@ def invoke(cls):
337
337
strCmd = '{0};' .format (cls .kCmdName )
338
338
maya .mel .eval (strCmd ) # @UndefinedVariable
339
339
340
- class publishCmd (BaseCommand ):
340
+ class exportCmd (BaseCommand ):
341
341
"""
342
- Publish Model in Unity
342
+ Export Model to Unity
343
343
344
344
@ingroup UnityCommands
345
345
"""
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 ())
349
349
kScriptCommand = 'import maya.cmds;maya.cmds.{0}()' .format (kCmdName )
350
- kRuntimeCommand = "UnityOneClickPublish "
350
+ kRuntimeCommand = "UnityOneClickExport "
351
351
352
352
def __init__ (self ):
353
353
super (self .__class__ , self ).__init__ ()
@@ -405,11 +405,11 @@ def invoke(cls):
405
405
406
406
class configureCmd (BaseCommand ):
407
407
"""
408
- Configure Maya Scene for Reviewing and Publishing to Unity
408
+ Configure Maya Scene for previewing and exporting to Unity
409
409
410
410
@ingroup UnityCommands
411
411
"""
412
- kLabel = 'Configure Maya to publish and review to a Unity Project'
412
+ kLabel = 'Configure Maya to preview and export to a Unity Project'
413
413
kShortLabel = 'Configure'
414
414
kCmdName = "{}Configure" .format (version .pluginPrefix ())
415
415
kScriptCommand = 'import maya.cmds;maya.cmds.{0}()' .format (kCmdName )
@@ -455,8 +455,8 @@ def register(pluginFn):
455
455
@param pluginFn (MFnPlugin): plugin object passed to initializePlugin
456
456
"""
457
457
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 )
460
460
pluginFn .registerCommand (configureCmd .kCmdName , configureCmd .creator , configureCmd .syntaxCreator )
461
461
462
462
return
@@ -467,8 +467,8 @@ def unregister(pluginFn):
467
467
@param pluginFn (MFnPlugin): plugin object passed to uninitializePlugin
468
468
"""
469
469
pluginFn .deregisterCommand (importCmd .kCmdName )
470
- pluginFn .deregisterCommand (reviewCmd .kCmdName )
471
- pluginFn .deregisterCommand (publishCmd .kCmdName )
470
+ pluginFn .deregisterCommand (previewCmd .kCmdName )
471
+ pluginFn .deregisterCommand (exportCmd .kCmdName )
472
472
pluginFn .deregisterCommand (configureCmd .kCmdName )
473
473
return
474
474
@@ -498,23 +498,23 @@ class importCmdTestCase(BaseCmdTest):
498
498
"""
499
499
__cmd__ = importCmd
500
500
501
- class reviewCmdTestCase (BaseCmdTest ):
502
- """UnitTest for testing the reviewCmd command
501
+ class previewCmdTestCase (BaseCmdTest ):
502
+ """UnitTest for testing the previewCmd command
503
503
"""
504
- __cmd__ = reviewCmd
504
+ __cmd__ = previewCmd
505
505
506
- class publishCmdTestCase (BaseCmdTest ):
507
- """UnitTest for testing the publishCmd command
506
+ class exportCmdTestCase (BaseCmdTest ):
507
+ """UnitTest for testing the exportCmd command
508
508
"""
509
- __cmd__ = publishCmd
509
+ __cmd__ = exportCmd
510
510
511
511
class configureCmdTestCase (BaseCmdTest ):
512
512
"""UnitTest for testing the configureCmd command
513
513
"""
514
514
__cmd__ = configureCmd
515
515
516
516
# NOTE: update this for test discovery
517
- test_cases = (importCmdTestCase , reviewCmdTestCase , publishCmdTestCase , configureCmdTestCase ,)
517
+ test_cases = (importCmdTestCase , previewCmdTestCase , exportCmdTestCase , configureCmdTestCase ,)
518
518
519
519
def load_tests (loader , tests , pattern ):
520
520
suite = unittest .TestSuite ()
0 commit comments