- Messages
- 10,163
- Country

For exporting in Max2014 without having to use the DOS command window thing (what ever you call it now, these days) I use a BAT file. I place the files I want to convert into the folder with the XtoMDL exe file and the MDL's and click on the BAT (that's in there with them) and it compiles them in quick order. No codes or anything to memorize and type.
Open Notepad, copy/paste this in, change the names and locations to the ones on your computer, save, rename as a BAT file, and Voila...
Copy/Paste///////////////////////////////////////////
rem Move this file to C:\Program Files (x86)\Lockheed Martin\Prepar3D SDK 1.4.4747.0\Environment Kit\Modeling SDK\3DSM2012\Plugins\
rem Move LJ.x and LJ.xanim to same location.
rem Execute this file.
XtoMdl /XANIM /DICT:..\..\bin\modeldef.xml LJ.x > LJ.log
XtoMdl /XANIM /DICT:..\..\bin\modeldef.xml LJ_Interior.x > LJ_Interior.log
pause
END Copy/Paste//////////////////////////////////////
NOTE: The names and the location of the plugins folder MUST be perfect. You should be able to copy this out of the top bar of the Windows Explorer.
You can see that my models that I want converted by this BAT file are LJ and LJ_Interior. These are both X and Xanim files, 1 set each.
Also, these create a LOG file for each export/compilation, so that if they do not work, you can read the LOG and see what happened during the export/compilization.
Open Notepad, copy/paste this in, change the names and locations to the ones on your computer, save, rename as a BAT file, and Voila...
Copy/Paste///////////////////////////////////////////
rem Move this file to C:\Program Files (x86)\Lockheed Martin\Prepar3D SDK 1.4.4747.0\Environment Kit\Modeling SDK\3DSM2012\Plugins\
rem Move LJ.x and LJ.xanim to same location.
rem Execute this file.
XtoMdl /XANIM /DICT:..\..\bin\modeldef.xml LJ.x > LJ.log
XtoMdl /XANIM /DICT:..\..\bin\modeldef.xml LJ_Interior.x > LJ_Interior.log
pause
END Copy/Paste//////////////////////////////////////
NOTE: The names and the location of the plugins folder MUST be perfect. You should be able to copy this out of the top bar of the Windows Explorer.
You can see that my models that I want converted by this BAT file are LJ and LJ_Interior. These are both X and Xanim files, 1 set each.
Also, these create a LOG file for each export/compilation, so that if they do not work, you can read the LOG and see what happened during the export/compilization.

