15
15
"""
16
16
@package commands
17
17
@defgroup UnityCommands Commands
18
- @ingroup UnityOneClickPlugin
18
+ @ingroup UnityFbxForMayaPlugin
19
19
@author Simon Inwood <[email protected] >
20
20
"""
21
21
22
- from unityOneClick .logger import LoggerMixin
22
+ from UnityFbxForMaya .logger import LoggerMixin
23
23
24
24
import maya .OpenMaya as OpenMaya # @UnresolvedImport
25
25
import maya .OpenMayaMPx as OpenMayaMPx # @UnresolvedImport
26
26
import maya .mel
27
27
import maya .cmds
28
28
29
- import unityOneClick .version as version
29
+ import UnityFbxForMaya .version as version
30
30
31
31
import ctypes
32
32
ctypes .pythonapi .PyCObject_AsVoidPtr .restype = ctypes .c_void_p
36
36
37
37
class BaseCommand (OpenMayaMPx .MPxCommand , LoggerMixin ):
38
38
"""
39
- Base class for UnityOneClick Plugin Commands.
39
+ Base class for UnityFbxForMaya Plugin Commands.
40
40
"""
41
41
kIconPath = ""
42
42
kFamilyIcon = 'unity.png'
43
- kFamilyLabel = "The UnityOneClick plugin allows you to reliably exchange and review your work between Maya and Unity."
43
+ kFamilyLabel = "The UnityFbxForMaya plugin allows you to reliably exchange and review your work between Maya and Unity."
44
44
45
45
def __init__ (self ):
46
46
OpenMayaMPx .MPxCommand .__init__ (self )
@@ -123,7 +123,7 @@ class importCmd(BaseCommand):
123
123
kShortLabel = 'Import'
124
124
kCmdName = "{}Import" .format (version .pluginPrefix ())
125
125
kScriptCommand = 'import maya.cmds;maya.cmds.{0}()' .format (kCmdName )
126
- kRuntimeCommand = "UnityOneClickImport "
126
+ kRuntimeCommand = "UnityFbxForMayaImport "
127
127
128
128
def __init__ (self ):
129
129
super (self .__class__ , self ).__init__ ()
@@ -249,7 +249,7 @@ class exportCmd(BaseCommand):
249
249
kShortLabel = 'Export'
250
250
kCmdName = "{}Export" .format (version .pluginPrefix ())
251
251
kScriptCommand = 'import maya.cmds;maya.cmds.{0}()' .format (kCmdName )
252
- kRuntimeCommand = "UnityOneClickExport "
252
+ kRuntimeCommand = "UnityFbxForMayaExport "
253
253
254
254
def __init__ (self ):
255
255
super (self .__class__ , self ).__init__ ()
@@ -328,7 +328,7 @@ def unregister(pluginFn):
328
328
# UNIT TESTS
329
329
#===============================================================================
330
330
import unittest
331
- from unityOneClick .basetestcase import BaseTestCase
331
+ from UnityFbxForMaya .basetestcase import BaseTestCase
332
332
333
333
class BaseCmdTest (BaseTestCase ):
334
334
"""Base class for command UnitTests
@@ -338,7 +338,7 @@ class BaseCmdTest(BaseTestCase):
338
338
339
339
def setUp (self ):
340
340
super (BaseCmdTest ,self ).setUp ()
341
- maya .cmds .loadPlugin ( 'unityOneClickPlugin .py' , quiet = True ) # @UndefinedVariable
341
+ maya .cmds .loadPlugin ( 'UnityFbxForMayaPlugin .py' , quiet = True ) # @UndefinedVariable
342
342
343
343
# test routine
344
344
def test_invoke (self ):
0 commit comments