@@ -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__ ()
@@ -326,17 +326,17 @@ def invoke(cls):
326
326
strCmd = '{0};' .format (cls .kCmdName )
327
327
maya .mel .eval (strCmd ) # @UndefinedVariable
328
328
329
- class publishCmd (BaseCommand ):
329
+ class exportCmd (BaseCommand ):
330
330
"""
331
- Publish Model in Unity
331
+ Export Model to Unity
332
332
333
333
@ingroup UnityCommands
334
334
"""
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 ())
338
338
kScriptCommand = 'import maya.cmds;maya.cmds.{0}()' .format (kCmdName )
339
- kRuntimeCommand = "UnityOneClickPublish "
339
+ kRuntimeCommand = "UnityOneClickExport "
340
340
341
341
def __init__ (self ):
342
342
super (self .__class__ , self ).__init__ ()
@@ -394,11 +394,11 @@ def invoke(cls):
394
394
395
395
class configureCmd (BaseCommand ):
396
396
"""
397
- Configure Maya Scene for Reviewing and Publishing to Unity
397
+ Configure Maya Scene for previewing and exporting to Unity
398
398
399
399
@ingroup UnityCommands
400
400
"""
401
- kLabel = 'Configure Maya to publish and review to a Unity Project'
401
+ kLabel = 'Configure Maya to preview and export to a Unity Project'
402
402
kShortLabel = 'Configure'
403
403
kCmdName = "{}Configure" .format (version .pluginPrefix ())
404
404
kScriptCommand = 'import maya.cmds;maya.cmds.{0}()' .format (kCmdName )
@@ -444,8 +444,8 @@ def register(pluginFn):
444
444
@param pluginFn (MFnPlugin): plugin object passed to initializePlugin
445
445
"""
446
446
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 )
449
449
pluginFn .registerCommand (configureCmd .kCmdName , configureCmd .creator , configureCmd .syntaxCreator )
450
450
451
451
return
@@ -456,8 +456,8 @@ def unregister(pluginFn):
456
456
@param pluginFn (MFnPlugin): plugin object passed to uninitializePlugin
457
457
"""
458
458
pluginFn .deregisterCommand (importCmd .kCmdName )
459
- pluginFn .deregisterCommand (reviewCmd .kCmdName )
460
- pluginFn .deregisterCommand (publishCmd .kCmdName )
459
+ pluginFn .deregisterCommand (previewCmd .kCmdName )
460
+ pluginFn .deregisterCommand (exportCmd .kCmdName )
461
461
pluginFn .deregisterCommand (configureCmd .kCmdName )
462
462
return
463
463
@@ -487,23 +487,23 @@ class importCmdTestCase(BaseCmdTest):
487
487
"""
488
488
__cmd__ = importCmd
489
489
490
- class reviewCmdTestCase (BaseCmdTest ):
491
- """UnitTest for testing the reviewCmd command
490
+ class previewCmdTestCase (BaseCmdTest ):
491
+ """UnitTest for testing the previewCmd command
492
492
"""
493
- __cmd__ = reviewCmd
493
+ __cmd__ = previewCmd
494
494
495
- class publishCmdTestCase (BaseCmdTest ):
496
- """UnitTest for testing the publishCmd command
495
+ class exportCmdTestCase (BaseCmdTest ):
496
+ """UnitTest for testing the exportCmd command
497
497
"""
498
- __cmd__ = publishCmd
498
+ __cmd__ = exportCmd
499
499
500
500
class configureCmdTestCase (BaseCmdTest ):
501
501
"""UnitTest for testing the configureCmd command
502
502
"""
503
503
__cmd__ = configureCmd
504
504
505
505
# NOTE: update this for test discovery
506
- test_cases = (importCmdTestCase , reviewCmdTestCase , publishCmdTestCase , configureCmdTestCase ,)
506
+ test_cases = (importCmdTestCase , previewCmdTestCase , exportCmdTestCase , configureCmdTestCase ,)
507
507
508
508
def load_tests (loader , tests , pattern ):
509
509
suite = unittest .TestSuite ()
0 commit comments