<?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 Batch export from .max to .fbx gives empty files in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/8246897#M9777</link>
    <description>&lt;P&gt;I need to batch export a huge amount of files (around 80 000) from .MAX to .FBX&amp;nbsp;format. The files are from different versions of&amp;nbsp;.MAX so there are prompts showing up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've done&amp;nbsp;the export successfully when opening files manually and then running my export Max script. When opening the files manually I answer some prompts, note that if I don't answer them, the models can't be opened.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When doing it through my bash script, I suppose that the automated answers (if there are any) aren't the correct ones. Below is my line of code that calls the batch program from my WLS environment (Linux environment on Windows).&amp;nbsp; To clarify, everything compiles fine and the export is done, just that the exported .FBX file is 8 kb and can't be opened.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/mnt/c/"Program Files"/Autodesk/"3ds Max 2019"/3dsmaxbatch.exe $EXPORT_SCRIPT -dm yes -mxsString out:$OUT_PATH -mxsString file:"/$FILENAME_WO_EXTENSION" -listenerLog "C:\Users\Max\Documents\test.log"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've experimented with the -dm flag, without any luck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the prompts and my answers in red. I suppose that I need to make these answers default in my script, in some way.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2018-09-05 at 16.10.53.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/542705iBA094160FF0D6A93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2018-09-05 at 16.10.53.png" alt="Screen Shot 2018-09-05 at 16.10.53.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2018-09-05 at 16.11.06.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/542704iBC01215006E2BE20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2018-09-05 at 16.11.06.png" alt="Screen Shot 2018-09-05 at 16.11.06.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2018-09-05 at 16.11.21.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/542706iCDFC50A4F26687B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2018-09-05 at 16.11.21.png" alt="Screen Shot 2018-09-05 at 16.11.21.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2018-09-05 at 16.11.32.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/542707i9E2675C4E08A6A47/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2018-09-05 at 16.11.32.png" alt="Screen Shot 2018-09-05 at 16.11.32.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Sep 2018 14:26:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-05T14:26:50Z</dc:date>
    <item>
      <title>Batch export from .max to .fbx gives empty files</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/8246897#M9777</link>
      <description>&lt;P&gt;I need to batch export a huge amount of files (around 80 000) from .MAX to .FBX&amp;nbsp;format. The files are from different versions of&amp;nbsp;.MAX so there are prompts showing up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've done&amp;nbsp;the export successfully when opening files manually and then running my export Max script. When opening the files manually I answer some prompts, note that if I don't answer them, the models can't be opened.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When doing it through my bash script, I suppose that the automated answers (if there are any) aren't the correct ones. Below is my line of code that calls the batch program from my WLS environment (Linux environment on Windows).&amp;nbsp; To clarify, everything compiles fine and the export is done, just that the exported .FBX file is 8 kb and can't be opened.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/mnt/c/"Program Files"/Autodesk/"3ds Max 2019"/3dsmaxbatch.exe $EXPORT_SCRIPT -dm yes -mxsString out:$OUT_PATH -mxsString file:"/$FILENAME_WO_EXTENSION" -listenerLog "C:\Users\Max\Documents\test.log"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've experimented with the -dm flag, without any luck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the prompts and my answers in red. I suppose that I need to make these answers default in my script, in some way.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2018-09-05 at 16.10.53.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/542705iBA094160FF0D6A93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2018-09-05 at 16.10.53.png" alt="Screen Shot 2018-09-05 at 16.10.53.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2018-09-05 at 16.11.06.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/542704iBC01215006E2BE20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2018-09-05 at 16.11.06.png" alt="Screen Shot 2018-09-05 at 16.11.06.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2018-09-05 at 16.11.21.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/542706iCDFC50A4F26687B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2018-09-05 at 16.11.21.png" alt="Screen Shot 2018-09-05 at 16.11.21.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2018-09-05 at 16.11.32.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/542707i9E2675C4E08A6A47/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2018-09-05 at 16.11.32.png" alt="Screen Shot 2018-09-05 at 16.11.32.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 14:26:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/8246897#M9777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-05T14:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export from .max to .fbx gives empty files</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/8248798#M9778</link>
      <description>&lt;P&gt;I forgot to include the MAXscript it self. Here it comes:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;opts = maxOps.mxsCmdLineArgs
filepath = opts[#out] as string
file = opts[#file] as string

fullpath = (filepath + file)
print fullpath

exportfile fullpath #noprompt selectedOnly:false using:ExporterPlugin.Classes[9]
quitMAX #noprompt&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Sep 2018 06:20:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/8248798#M9778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-06T06:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export from .max to .fbx gives empty files</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/8248854#M9779</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will investigate on the data you posted and be back to you as soon as I have an update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 06:56:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/8248854#M9779</guid>
      <dc:creator>francesco.torchia</dc:creator>
      <dc:date>2018-09-06T06:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export from .max to .fbx gives empty files</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/8268655#M9780</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;your script does not seem to load any max file at all...&lt;/P&gt;
&lt;P&gt;that may explain the fbx to be empty.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in the Script, before the export can you try to load the file using these args :&lt;/P&gt;
&lt;P&gt;loadmaxfile @"drive:\filepath\name.max"&amp;nbsp;quiet:true allowPrompts:false&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 13:57:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/8268655#M9780</guid>
      <dc:creator>ads_royje</dc:creator>
      <dc:date>2018-09-14T13:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export from .max to .fbx gives empty files</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/8271659#M9781</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;That seems to have solved it, I missed that detail totally.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For&amp;nbsp;helping other people, I also had to had&amp;nbsp;&lt;SPAN&gt;setVRaySilentMode() to silence VRay propmts as well. Now all seems OK.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your support&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330484"&gt;@francesco.torchia&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1230224"&gt;@ads_royje&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 06:58:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/8271659#M9781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-17T06:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export from .max to .fbx gives empty files</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/8272213#M9782</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;, great to know it works now&amp;nbsp;! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your feedback!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 11:09:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/8272213#M9782</guid>
      <dc:creator>ads_royje</dc:creator>
      <dc:date>2018-09-17T11:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export from .max to .fbx gives empty files</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/8272458#M9783</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could you please click &lt;FONT color="#008000"&gt;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&lt;/FONT&gt; on the posts that helped you so others in the community can find them easily?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 12:33:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/8272458#M9783</guid>
      <dc:creator>francesco.torchia</dc:creator>
      <dc:date>2018-09-17T12:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export from .max to .fbx gives empty files</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/9788867#M9784</link>
      <description>&lt;P&gt;Where is the final solution?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 12:05:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/batch-export-from-max-to-fbx-gives-empty-files/m-p/9788867#M9784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-07T12:05:07Z</dc:date>
    </item>
  </channel>
</rss>

