4
$\begingroup$

I know it is a bad question sorry but I haven't found any information about these matrices expect in the blender documentations.

The docs say that matrix_basis is:

Matrix access to location, rotation and scale (including deltas), before constraints and parenting are applied.

So if not related to any parent, is it the same as matrix_world ?

$\endgroup$
1
  • $\begingroup$ The mathviz (currently dead wiki link) addon is a a perfect way to experiment. Enable addon and type MW = C.object.matrix_world into python console and a rep'n of matrix is drawn in 3d view. $\endgroup$
    – batFINGER
    Commented Jun 23, 2018 at 14:48

1 Answer 1

8
$\begingroup$

matrix_basis is the 'input' matrix, so it's the thing that you set as the 3D artist, so it's relative to the object's parent. matrix_world is the 'evaluated' matrix, so it basically is matrix_basis with all the constraints applied and is multiplied by all the parent matrices (so it's in world coordinates).

$\endgroup$
2
  • 1
    $\begingroup$ Thank you for your answer ! But now the question is then what is matrix_local ? Because what you said for the matrix_basis I thought it is the local. $\endgroup$ Commented Jun 23, 2018 at 13:21
  • $\begingroup$ The API documentation actually describes the difference: "Only takes into account ‘Object’ parenting" $\endgroup$
    – dr. Sybren
    Commented Jun 23, 2018 at 23:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .