Skip to content

Instantly share code, notes, and snippets.

@Seeker14491
Last active April 10, 2018 07:29
Show Gist options
  • Save Seeker14491/f4c898a4b18f0b5bf3a8609aea8d1246 to your computer and use it in GitHub Desktop.
Save Seeker14491/f4c898a4b18f0b5bf3a8609aea8d1246 to your computer and use it in GitHub Desktop.
  1. If you don't already have it installed, download Python 3.x.x from https://www.python.org/downloads/. Go with the default options in the installer, but be sure to check the option to add Python to your PATH.

  2. Check that the installation is functional by opening a terminal and running these commands:

python --version
pip --version

Each should print out a line showing the version number.

  1. In a terminal window, run these commands:
pip install numpy
pip install numpy-quaternion
pip install distanceutils
  1. The scripts should be installed now. You can run the object conversion script with the following command in the terminal:
dst-objtobytes.exe input.obj output.bytes

where input.obj is the input file you want to convert to the Distance .bytes format. If you get an error about the command not being found, try restarting your terminal.

  1. Copy the generated *.bytes file to your Distance CustomObjects folder, which, at least on Windows, is at Documents\My Games\Distance\CustomObjects

  2. The custom object should now be available in the editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment