我不能很好地英语:(
我取消了FBX Exporter和OBJ Exporter。
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
)
与getFilenamePath相同的代码。
FBX Exporter成功到MaxfilePath \ MaxfileName.fbx
但是OBJ Exporter在Drive \ MaxfileName.obj中制作了OBJ,Maxfile(E:\ Maxfilename.obj)
我不知道为什么:(
我想在maxfilePath中创建obj
答案 0 :(得分:1)
我修好了。
fn OBJexport =
(
local MaxSave = getFilenamePath maxfilepath + "\\" + getFilenameFile maxfilename + ".obj"
local plug = findItem exporterPlugin.classes ObjExp
exportFile MaxSave #noPrompt selectedOnly: (selection.count != 0 ) using: plug
)