Hi Guys,
I've just reopened a script i made a while ago, however I know it was working last time I used it, it's now not working.
When going through the export part of code it gives the error
no ""+"" function for undefined
The code is as follows:
fn ExportFBX filePath createFolder ObjName = (<br> OpenFbxSetting()<br> --File path and name <br> if createFolder != false then (<br> exportFolder = filePath + "\Export\\"<br> if doesFileExist exportFolder == False do (makedir exportFolder)<br> )<br> else (<br> exportFolder = filePath<br> )<br> exportPath = exportfolder + "\\" + ObjName + ".fbx"<br> <br> <br> exportfile exportPath #noprompt selectedOnly:true using:FBXEXP<br>)
The error occurs on the following lines:
exportFolder = filePath + "\Export\\"
exportPath = exportfolder + "\\" + ObjName + ".fbx"
I determine the location chosen by the user in a previous function and pass it through as filePath, objName is also determined in the same function.
fn StartScript alignAxis zeroPosition exportType<br> exportCheck folderCheck filePath = (<br> SelectionCount = GetCurrentSelection()<br> if SelectionCount.count > 1 then (<br> messagebox "More than one object selected, please select only one object"<br> )<br> else (<br> ObjectName = selection[1].name as string -- Get name of currently selected object<br> if exportType != "OBJ" and exportCheck != false then ( --if user has picked FBX<br> exportFBX filePath folderCheck ObjectName<br> )<br> )<br>)<br>
Any help is appreciated!
Replies