File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Assets/Integrations/Autodesk/maya2017/scripts/unityOneClick Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def scriptCmd(cls):
92
92
93
93
def beforeImport (self , retCode , file , clientData ):
94
94
# store path and filename
95
- self ._tempPath = file .resolvedFullName ()
95
+ self ._tempPath = file .resolvedPath ()
96
96
self ._tempName = file .resolvedName ()
97
97
98
98
def afterImport (self , * args , ** kwargs ):
@@ -232,8 +232,9 @@ def doIt(self, args):
232
232
return
233
233
234
234
global UNITY_FBX_FILE_PATH
235
- if UNITY_FBX_FILE_PATH :
236
- strCmd = r'file -force -options "" -typ "FBX export" -pr -es "{0}"' .format (UNITY_FBX_FILE_PATH );
235
+ global UNITY_FBX_FILE_NAME
236
+ if UNITY_FBX_FILE_PATH and UNITY_FBX_FILE_NAME :
237
+ strCmd = r'file -force -options "" -typ "FBX export" -pr -es "{0}{1}"' .format (UNITY_FBX_FILE_PATH , UNITY_FBX_FILE_NAME );
237
238
else :
238
239
strCmd = 'SendToUnitySelection'
239
240
self .displayDebug ('doIt {0}' .format (strCmd ))
You can’t perform that action at this time.
0 commit comments