Hi guys
I need some really basic "one click export" which can be binded to some short-key or button.
Currently i have frustrating routine like File->Export->... and so on.
I dont need any changes in pivot, reset x-form and collapsing stack. Only regular export to FBX like i do ot currently, but just by one click.
Unfortunately i'm completely experience less person in terms of maxscripts. But i believe its some pretty damn simple script?
I Found this thread:
https://polycount.com/discussion/132959/3ds-max-how-to-export-a-fbx-file-without-pop-up-windowsBut my naive trials to modify the code wasnt success =/
Replies
Highlight and drag that code into your toolbar to make a button and when you click it, it will export a fbx file with the above settings. If you don't care about the settings you can drop that middle section and it will use whatever settings you used last time.
It exports to the path of the currently open max file and uses the objects name, for the name of the fbx file.
If you don't have anything selected, it complains.
I hope that helps!
I read a little about max script and try to change script to the way:
export file with current .max file name.
Like, if i have blah_blah.max, exported file should have the same name - blah_blah.fbx
I was try using maxFileName, cause it looks like correct command for that sort of things, but with no luck
Thanks, Noors
Maxfilename returns the file name with the extension so your fbx file would be .../mything.max.fbx
If you use the getfilenamefile on the maxfilename it drops the extension and just returns the name of the file.
If you're looking to expand on your script later, you can check out one I made a few years back. At the time I had it autoload on startup and it docked itself in the toolbar. It was nice having a compact one button solution. It has some features you probably won't need like,
- Renaming the material.
- Triangulating the mesh.
- Setting and storing the path.
- Move the object to world 0 0 0 and then move it back
- Export the currently selected object or if nothing is selected go through each object and export them one at a time.
So there is some fluff you can trim out. But feel free to dig through and use whatever is useful.https://polycount.com/discussion/93587/fbxport-a-maxscript-to-help-automate-exporting-files-to-udk/p1?new=1
If you get into modifying it and have questions hit me up