inFormat = ".model" --put your in format hereoutFormat = ".dae" -- put your out format herefiles = getFiles "c:\\foo\\*."+ inFormatfor f in files do ( importFile f #noPrompt newFilename = (filterString f ".")[1] + outFormat exportFile newFilename #noPrompt ) this should do it. havent tested it but is not exactly complex..…
hey guys, i'm trying to import a batch of obj files from a directory without having the script show any dialogs but for some reason it always shows the import dialog on the first import i want to do. The following objs import without showing any dialog. Here is the code ( theFiles = getFiles "C:\\path\\*.*" for i = 1 to…
you need to enable quiet mode when you export - here's an example --hard code paths because I'm a lazy sod...exportFolder = "C:\\export_pile"exportFileName = ("thing.fbx")-- do some stuffprint (exportFolder + "\\" + exportFileName)exportFile ( exportFolder + "\\" + exportFileName) #noPrompt quiet:true
mmh i'm not able to get using:exporterPlugin.Classes[13] to work. What format do you want to save to? Iges ? We could simply define the extension. on btn_export pressed do ( sel = selection as array folderPath = edt_path.text --redefine folderPath here theClasses =exporterPlugin.classes for obj in sel do --for each object…
Just curious, what does the export class do? I had to export a bunch of stuff for Unreal 4 yesterday and quickly wrote : thePath = "C:\PATH"theSel = selection as arrayfor i = 1 to theSel.count do ( oriPos = theSel[i].pos theSel[i].pos = [0,0,0] select theSel[i] exportFile (thePath + "/" + theSel[i].name + ".fbx") #noPrompt…
I looked at the script: and this should be the spot where it stops for you:exportFile OBJFilePath #noPrompt selectedOnly:true the error message itself is not coded within the script so its the OS or Max that can't write the file to the distination. SO I think that either the URL is wrong or you have no rights. also some of…
I'm not a technical artist but I do write scripts from time to time, mostly just to save myself from "death by momentous task". This time around I got tired of shuffling objects around renaming materials and triangulating meshes when I was exporting to UDK. So I wrote a quick, simple little script that handles that stuff…
I'm not sure I can test what you have going but lets see if I can help you structure things so they're a little more manageable and readable.(--Start of Script---------------------------------------------------DECLARATIONS---------------------------------------------------thePath = getSavePath() --get a path dialog to…
Here is variation (Or more like loosely based) on Marks script. Just a very quick job so far to fit my use for this. Also hardly tested at all. I'll probably add some more to it tomorrow tough. Edit: Updated. * Exports selected Meshes (Editable Poly and Editable Mesh) or all meshes if nothing is selected as one fbx with…