b = XSIUIToolkit.FileBrowser
b.DialogTitle = "Select a file"
b.InitialDirectory = "d:\\tmp\\"
b.Filter = "XSI (*.xsi)|*.xsi|All Files (*.*)|*.*||"
b.ShowOpen()
if b.FilePathName != "":
Application.LogMessage("File path name : " + b.FilePathName)
Application.LogMessage("File Name : " + b.FileName)
Application.LogMessage("File base name : " + b.FileBaseName)
Application.LogMessage("File extension : " + b.FileExtension)
Application.LogMessage("Path : " + b.FilePath)
else:
Application.LogMessage("User pressed cancel")
/// 結果は以下のようになる
#INFO : File path name : D:\tmp\cube.xsi
#INFO : File Name : cube.xsi
#INFO : File base name : cube
#INFO : File extension : xsi
#INFO : Path : D:\tmp\