# Export mesh as GLTF with Python

**URL:** <https://forums.unrealengine.com/t/export-mesh-as-gltf-with-python/232296>\
**Category:** Editor Scripting\
**Tags:** unreal-engine\
**Created:** [May 30, 2021, 3:20am UTC](https://forums.unrealengine.com/t/export-mesh-as-gltf-with-python/232296 "2021-05-30T03:20:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![anonymous\_user\_075f8e22](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_075f8e22](https://forums.unrealengine.com/u/anonymous_user_075f8e22)\
**Post date:** [May 30, 2021, 7:08am UTC](https://forums.unrealengine.com/t/export-mesh-as-gltf-with-python/232296/2 "2021-05-30T07:08:28Z")

</div>

Hack using AHK for the time being. Won’t be able to do anything else while it is running. Can this be accomplished with the Editor Utility Widget?

```
#SingleInstance, force
SendMode, Input
SetTitleMatchMode, 2
CoordMode, Mouse, Screen
Wait_UE_Export := 0

CapsLock & F1:: ; Hover over Asset Actions > Export button, and press hotkey.
Send, {LButton}
Loop { 
		Loop {
		If WinExist("Save: ")
			{
				Sleep 500
				Control, Choose, 3 , ComboBox2, Save: ; 'Choose, 3' for .gltf, or 'Choose, 2' for .glb
				Send, !d
				Sleep 500
				Send, {Text}C:\Users\Me\Desktop\UE_Exported ; Destination Folder
				Sleep 2000
				Send, {Enter 6}
				Wait_UE_Export := 0
				break
			}
		Wait_UE_Export += 1
		ToolTip, %Wait_UE_Export%
		If (Wait_UE_Export >= 6000) ; ~1 minute
			{
				Send, {Enter 2}
			}
		If (Wait_UE_Export >= 60000) ; ~10 minutes
			{
				break 2
			}
		}
		Loop {
		If WinExist("Export Options")
			{
				Sleep 500
				WinMove, Export Options,, 705, 270
				Sleep 500
				MouseClick, L, 1100, 725, 1, 0
				break
			}
		Wait_UE_Export += 1
		ToolTip, %Wait_UE_Export%
		If (Wait_UE_Export >= 6000) ; ~1 minute 
			{
				Send, {Enter 2}
			}
		If (Wait_UE_Export >= 60000) ; ~10 minutes
			{
				break 2
			}
		}
}
ToolTip, Concluded... If nothing went wrong!
return

$Space:: Send, {Space}
Space & y:: ExitApp

```

---

_[View the full topic](https://forums.unrealengine.com/t/export-mesh-as-gltf-with-python/232296)._
