置顶随笔

The exporter fully supports unassisted exports via 3ds Max's MAXScript language.
The following example shows how to load a file and export it to a .X file using MAXScript.

fn makeXFile maxFile =
(
    baseName = getFilenameFile maxFile
    xPath = getFilenamePath maxFile
    xFile = xPath + baseName + ".x"
    
    makeDir xPath    
    loadMaxFile maxFile quiet:true
    exportFile xFile #noPrompt selectedOnly:false

    return xFile
)

One could then use the function makeXFile to export data as follows:

// creates the file c:\art\maxfiles\dude.x
makeXFile "c:\art\maxfiles\dude.max"

--------------------------------------
dx blog

posted @ 2012-05-04 04:09 Axe 阅读(182) | 评论 (0)编辑 收藏

仅列出标题