Pages

Tuesday, December 28, 2010

FBX batch exporter

The question (read here) is (quote): I need a script that will batch export a selection of objects in a scene as .FBX files named the same as they are in max and into the same folder as the max file.

...and here is my quick reply:
if maxFilePath != "" and selection.count > 0 do
(
savePath = maxFilePath
selObjs = getCurrentSelection()
clearSelection()

for obj in selObjs do
(
select obj
FName = savePath + obj.name + ".fbx"
exportFile FName #noPrompt selectedOnly:true
)
)
...hope its useful. If you need to specifying FBX export settings, look into the MAXScript Reference for "FBX Export Dialog Access" topic.

Cheers

No comments:

Post a Comment

Thanks for your comment