DotNet OpenFileDialog in MAXScript


/ Published in: Maxscript
Save to your folder(s)

get multiple filenames by DotNet OpenFileDialog


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.