Skip to content

Instantly share code, notes, and snippets.

@atteneder
Created November 17, 2020 02:35
Show Gist options
  • Save atteneder/594d4d6ac8bbf88d3c4efd0564fea75e to your computer and use it in GitHub Desktop.
Save atteneder/594d4d6ac8bbf88d3c4efd0564fea75e to your computer and use it in GitHub Desktop.
Coordinate Space Axis Conversion Matrix from Blender
# Run this in Blender's Python Console (in Scripting Workspace)
import bpy_extras
# change parameters accordingly
conv_matrix = bpy_extras.io_utils.axis_conversion(from_forward='Y', from_up='Z', to_forward='-Z', to_up='Y')
## conv_matrix:
# Matrix(((1.0, 0.0, 0.0),
# (0.0, 0.0, 1.0),
# (0.0, -1.0, 0.0)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment