Skip to content

Commit aca7728

Browse files
committed
store the path without the name
instead of storing the full path with the name and the name
1 parent 6e45a5e commit aca7728

File tree

1 file changed

+4
-3
lines changed
  • Assets/Integrations/Autodesk/maya2017/scripts/unityOneClick

1 file changed

+4
-3
lines changed

Assets/Integrations/Autodesk/maya2017/scripts/unityOneClick/commands.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def scriptCmd(cls):
9292

9393
def beforeImport(self, retCode, file, clientData):
9494
# store path and filename
95-
self._tempPath = file.resolvedFullName()
95+
self._tempPath = file.resolvedPath()
9696
self._tempName = file.resolvedName()
9797

9898
def afterImport(self, *args, **kwargs):
@@ -232,8 +232,9 @@ def doIt(self, args):
232232
return
233233

234234
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);
237238
else:
238239
strCmd = 'SendToUnitySelection'
239240
self.displayDebug('doIt {0}'.format(strCmd))

0 commit comments

Comments
 (0)