Maxscript - 获取选中文件
使用 .Net 的方法弹出窗口选择文件,并范围所有选中文件的路径“”
Fn Fun_GetFilePaths strTitle strFilter = (
dialog = DotNetObject"System.Windows.Forms.OpenFileDialog"
dialog.title = strTitle
dialog.filter = strFilter
dialog.Multiselect = true
OpenFileResult = dialog.ShowDialog()
if OpenFileResult.Equals OpenFileResult.OK then (
dialog.FileNames
)
else Undefined
)
Fun_GetFilePaths "请选择.max文件" "OBJ (*.max)|*.MAX"