# 3ds Max / Maya call babylonjs exporter through script

**URL:** <https://forum.babylonjs.com/t/3ds-max-maya-call-babylonjs-exporter-through-script/13826>\
**Category:** Questions\
**Tags:** maya, exporter\
**Created:** [September 1, 2020, 9:30am UTC](https://forum.babylonjs.com/t/3ds-max-maya-call-babylonjs-exporter-through-script/13826 "2020-09-01T09:30:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![efsjouw](https://avatars.discourse-cdn.com/v4/letter/e/7cd45c/32.png) [@efsjouw](https://forum.babylonjs.com/u/efsjouw)\
**Post date:** [September 1, 2020, 9:30am UTC](https://forum.babylonjs.com/t/3ds-max-maya-call-babylonjs-exporter-through-script/13826/1 "2020-09-01T09:30:49Z")

</div>

Hello I am currently researching some automation options for converting models into .glb or .obj format.

I wonder if it is possible to access the babylonjs plugin exporter functionality via scripting in maya?

From what I understand it is possible in Maya aswell as 3ds Max to execute a script from the commandline.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [September 1, 2020, 4:14pm UTC](https://forum.babylonjs.com/t/3ds-max-maya-call-babylonjs-exporter-through-script/13826/2 "2020-09-01T16:14:14Z")

</div>

Hello and welcome,

yep you can use MEL for that. But I would recommend using Blender if you can as it seems easier to control from command line

---

<div class="post-metadata">

**Author:** ![efsjouw](https://avatars.discourse-cdn.com/v4/letter/e/7cd45c/32.png) [@efsjouw](https://forum.babylonjs.com/u/efsjouw)\
**Post date:** [September 2, 2020, 7:18am UTC](https://forum.babylonjs.com/t/3ds-max-maya-call-babylonjs-exporter-through-script/13826/3 "2020-09-02T07:18:04Z")

</div>

Oh i’ve already looked into blender, problem is we want to convert .ftl models (Open Flight) and blender stopped supporting that at version 2.46 and I have no idea how much work it is to update this addon to 2.8

Can I also do this in Maya with Python? Could you point me into right direction?

EDIT - Alright so I already have a script working to export as obj, but then I would need to load the texture externally on the model right? This is why I would like to use .glb/gltf as the exporter appears to already include the texture in the file itself.

EDIT - Ok I looked into the loadPlugin command and found the MEL script example here [Exporters/exportScriptExemple.mel at master · BabylonJS/Exporters · GitHub](https://github.com/BabylonJS/Exporters/blob/master/Maya/MELScripts/exportScriptExemple.mel)
