File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Assets/Integrations/Autodesk/maya/scripts Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 58
58
# Configure Maya Integration
59
59
TEMP_SAVE_PATH=" _safe_to_delete"
60
60
EXPORT_SETTINGS_PATH=" Integrations/Autodesk/maya/scripts/unityFbxExportSettings.mel"
61
+ MAYA_INSTRUCTION_PATH=" _safe_to_delete/_temp.txt"
61
62
HEADLESS=1
62
63
63
64
# NOTE: we need start Maya in UI mode so that we can correctly configure the auto-load of the plugin.
64
- " ${MAYA_PATH} " -command " configureUnityOneClick \" ${PROJECT_PATH} \" \" ${UNITY_EDITOR_PATH} \" \" ${TEMP_SAVE_PATH} \" \" ${EXPORT_SETTINGS_PATH} \" ${HEADLESS} ; scriptJob -idleEvent quit;"
65
+ " ${MAYA_PATH} " -command " configureUnityOneClick \" ${PROJECT_PATH} \" \" ${UNITY_EDITOR_PATH} \" \" ${TEMP_SAVE_PATH} \" \" ${EXPORT_SETTINGS_PATH} \" \" ${MAYA_INSTRUCTION_PATH} \" ${HEADLESS} ; scriptJob -idleEvent quit;"
65
66
fi
66
67
67
68
exit 0
Original file line number Diff line number Diff line change @@ -270,7 +270,11 @@ def doIt(self, args):
270
270
unityProjectPath = maya .cmds .optionVar (q = 'UnityProject' )
271
271
unityTempSavePath = os .path .join (unityProjectPath , "Assets" , maya .cmds .optionVar (q = 'UnityTempSavePath' ))
272
272
unityCommand = "FbxExporters.Review.TurnTable.LastSavedModel"
273
- instructionFile = os .path .join (unityProjectPath , "Assets" , maya .cmds .optionVar (q = 'UnityInstructionPath' ))
273
+ if maya .cmds .optionVar (exists = 'UnityInstructionPath' ):
274
+ instructionFile = os .path .join (unityProjectPath , "Assets" , maya .cmds .optionVar (q = 'UnityInstructionPath' ))
275
+ else :
276
+ self .displayError ("Missing Unity instruction file path, please re-install integration." )
277
+ return
274
278
275
279
if not self .loadUnityFbxExportSettings ():
276
280
return
You can’t perform that action at this time.
0 commit comments