Posted By

janusoo on 05/01/15


Tagged


Versions (?)

DotNet OpenFileDialog in MAXScript


 / Published in: Maxscript
 

get multiple filenames by DotNet OpenFileDialog

  1. ofd = DotNetObject "System.Windows.Forms.OpenFileDialog"
  2. ofd.Title = "Files to Batch..."
  3. ofd.Filter = "3ds Max(*.max)|*.max|All files (*.*)|*.*"
  4. ofd.InitialDirectory = maxFilepath
  5. ofd.Multiselect = true
  6.  
  7. ofdResult = ofd.ShowDialog()
  8. ofdResult.toString()
  9.  
  10. if ofdResult.equals ofdResult.OK do
  11. (
  12. fileArray = ofd.filenames
  13. )

Report this snippet  

You need to login to post a comment.