<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: getOpenFileName for multiple files? in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/getopenfilename-for-multiple-files/m-p/4097906#M24163</link>
    <description>Sorry, this new forum software converted all the double-dashes and quotes inside the 'code' tags.</description>
    <pubDate>Thu, 04 Jun 2009 15:31:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-06-04T15:31:13Z</dc:date>
    <item>
      <title>getOpenFileName for multiple files?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/getopenfilename-for-multiple-files/m-p/4097903#M24160</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;in Max 2010, I am using the getOpenFileName command via a button in a rollout to select files. Is there any way to select multiple files? I want the user to be able to use the file open dialog to ctrl select multiple files in a dir and for the command to return an array of values.&lt;BR /&gt;&lt;BR /&gt;This way the user can perform a task on multiple files at once instead of one at a time.&lt;BR /&gt;&lt;BR /&gt;Any ideas using this or other commands? I don't want to use all the files in the dir so it is important that the user can select specific ones in the open file dialog.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Adnan</description>
      <pubDate>Thu, 04 Jun 2009 04:54:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/getopenfilename-for-multiple-files/m-p/4097903#M24160</guid>
      <dc:creator>adnanmg</dc:creator>
      <dc:date>2009-06-04T04:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: getOpenFileName for multiple files?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/getopenfilename-for-multiple-files/m-p/4097904#M24161</link>
      <description>This should be possible via DotNet.&lt;BR /&gt;&lt;BR /&gt;Although I did try adding the following to a rollout but didn't have much luck. Can anyone work out why this wouldn't work?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rollout Test "" width:400 height:400&lt;BR /&gt;&amp;amp;#40;&lt;BR /&gt;DotNetControl Test_FileBrower "System.Windows.Forms.FileDialog" pos: width:400 height:400&lt;BR /&gt;&amp;amp;#41;&lt;BR /&gt;&lt;BR /&gt;CreateDialog Test ""</description>
      <pubDate>Thu, 04 Jun 2009 13:06:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/getopenfilename-for-multiple-files/m-p/4097904#M24161</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-04T13:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: getOpenFileName for multiple files?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/getopenfilename-for-multiple-files/m-p/4097905#M24162</link>
      <description>Here is a function I wrote that works as a direct replacement for the built-in GetOpenFilename&amp;amp;#40;&amp;amp;#41;: &lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;fn GetMultiOpenFilenames caption:"Open" filename:"" types:"All Files &amp;amp;#40;*.*&amp;amp;#41;|*.*" default:1 =&lt;BR /&gt;&amp;amp;#40;&lt;BR /&gt; local dlg = DotNetObject "System.Windows.Forms.OpenFileDialog"&lt;BR /&gt; dlg.multiSelect = true&lt;BR /&gt; dlg.title = caption&lt;BR /&gt; &lt;BR /&gt; local p = getFilenamePath filename&lt;BR /&gt; if doesFileExist p then&lt;BR /&gt; dlg.initialDirectory = p&lt;BR /&gt; &lt;BR /&gt; -- MAXScript getOpenFilename uses trailing |;&lt;BR /&gt; -- OpenFileDialog filter does not.&lt;BR /&gt; if types == "|" then&lt;BR /&gt; dlg.filter = &amp;amp;#40;substring types 1 &amp;amp;#40;types.count - 1&amp;amp;#41;&amp;amp;#41;&lt;BR /&gt; else&lt;BR /&gt; dlg.filter = types&lt;BR /&gt; &lt;BR /&gt; dlg.filterIndex = default&lt;BR /&gt; &lt;BR /&gt; local result = dlg.ShowDialog&amp;amp;#40;&amp;amp;#41;&lt;BR /&gt; if &amp;amp;#40;result.Equals result.OK&amp;amp;#41; then&lt;BR /&gt; dlg.filenames&lt;BR /&gt; else&lt;BR /&gt; undefined&lt;BR /&gt;&amp;amp;#41;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jun 2009 15:28:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/getopenfilename-for-multiple-files/m-p/4097905#M24162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-04T15:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: getOpenFileName for multiple files?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/getopenfilename-for-multiple-files/m-p/4097906#M24163</link>
      <description>Sorry, this new forum software converted all the double-dashes and quotes inside the 'code' tags.</description>
      <pubDate>Thu, 04 Jun 2009 15:31:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/getopenfilename-for-multiple-files/m-p/4097906#M24163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-04T15:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: getOpenFileName for multiple files?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/getopenfilename-for-multiple-files/m-p/4097907#M24164</link>
      <description>Here is a second attempt at posting my GetOpenFilename&amp;amp;#40;&amp;amp;#41; replacement function, this time as an attachment.&lt;BR /&gt;&lt;BR /&gt;Am I missing something, or can I neither delete nor edit replies in this new forum software?</description>
      <pubDate>Thu, 04 Jun 2009 15:33:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/getopenfilename-for-multiple-files/m-p/4097907#M24164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-04T15:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: getOpenFileName for multiple files?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/getopenfilename-for-multiple-files/m-p/4097908#M24165</link>
      <description>Hm, attachments don't seem to work, either, at least not for .ms files. Trying with a zip.</description>
      <pubDate>Thu, 04 Jun 2009 15:40:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/getopenfilename-for-multiple-files/m-p/4097908#M24165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-04T15:40:51Z</dc:date>
    </item>
  </channel>
</rss>

