Skip to content

Instantly share code, notes, and snippets.

@atteneder
Created November 17, 2020 02:35
Embed
What would you like to do?
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