Created
November 17, 2020 02:35
-
-
Save atteneder/594d4d6ac8bbf88d3c4efd0564fea75e to your computer and use it in GitHub Desktop.
Coordinate Space Axis Conversion Matrix from Blender
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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