Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created December 4, 2018 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/eb377c7fd3ca32290b5526524340ded7 to your computer and use it in GitHub Desktop.
Save zeffii/eb377c7fd3ca32290b5526524340ded7 to your computer and use it in GitHub Desktop.
import bpy
from mathutils import Matrix
new_matrix = Matrix((
(0.791, 0.612, 0.0, 0.279),
(-0.612, 0.7906, 0.0, -0.0995),
(0.0, 0.0, 1.0, -0.60742),
(0.0, 0.0, 0.0, 1.0)))
cube = bpy.data.objects['Cube']
cube.matrix_local = new_matrix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment