2017-09-18 56 views
0
出口

我不能好英語:(
我做funtions FBX導出和OBJ出口商。OBJ在MaxfilePath


fn FBXexport = 
(
    local MaxSave = getFilenamePath maxfilename + "\\" + getFilenameFile maxfilename + ".fbx" 
    local plug = findItem exporterPlugin.classes FBXEXP 

    exportFile MaxSave #noPrompt selectedOnly: (selection.count != 0) using: plug 
) 


fn OBJexport = 
(
    local MaxSave = getFilenamePath maxfilename + "\\" + getFilenameFile maxfilename + ".obj" 
    local plug = findItem exporterPlugin.classes ObjExp 

    exportFile MaxSave #noPrompt selectedOnly: (selection.count != 0) using: plug 
) 

是相同的代碼得到文件名路徑

FBX導出是成功MaxfilePath \ MaxfileName.fbx
但OBJ出口商在驅動器\ MaxfileName.obj取得OBJ,Maxfile(E:\ Maxfilename.obj)

我不知道爲什麼:(
我想在maxfilePath中製作obj

回答

0

我修正了它。

fn OBJexport = 
    (
     local MaxSave = getFilenamePath maxfilepath + "\\" + getFilenameFile maxfilename + ".obj" 
     local plug = findItem exporterPlugin.classes ObjExp 

     exportFile MaxSave #noPrompt selectedOnly: (selection.count != 0) using: plug 
    ) 
相關問題