Git Product home page Git Product logo

unreal2gltf's Introduction

unreal2gltf

A script for bulk exporting static meshes from Unreal Engine 5.0+ to the gltf or glb format.

Setting up the Unreal Editor for Python scripting

The only prerequisite needed is to install and enable the Unreal Engine Editor Python Script Plguin. To do this you must go to Edit->Plugins and search for the Python Editor Script Plugin, enable it and restart your editor.

Downloading and installing the script.

Download and extract the zip file from Github or clone the repository from the commandline. Take note of where you saved the script at.

Project setup and usage from the Unreal Editor.

Ensure you have the Unreal Editor Python Script plugin enabled. Then:

  1. Edit->Project Settings...
  2. Once in your project look for "Python" under "Plugins."
  3. Under "Additional Paths" add the path to the folder where you saved the script.
  4. Restart your editor.

At the bottom of the Unreal Editor, there should be a text entry box next to "Cmd." Change Cmd to Python by clicking on it. Then enter the script as instructed in Usage.

Usage

Usage: unreal2gltf.py -i <input path> -o <output path> [additional flags]

-i, --ipath=: Relative path to assets from the content directory. Ex. /path/to/input/

-o, --opath=: Where the exported files will be sent. Has to be a full path. Ex. C:/path/to/output/

-r, --recursive: Export assets from all subdirectories. Will not preserve directory structure of any folders not explictely chosen.

-b, --binary: Will export assets in the '.glb' instead of the '.gltf' format.

-d, --subdirs=: List of subdirectories to export separated by commas. This in attempt at preserving directory structure. Ex. path1,path2,path3

-v, --version: Get current version of the script and exit.

Advanced Uage

This script can be run directly from the commandline. Unreal Documentation shows how to run Python scripts directly from the commandline here.

Warning

Running this script as a 'Commandlet' has been shown not to generate textures and materials for the assets exported.

unreal2gltf's People

Contributors

kalrach avatar

Stargazers

Pamisu avatar  avatar  avatar Rienovie avatar  avatar J avatar Guillaume avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.