pymel.core.datatypes.Matrix

digraph inheritance3cc9bec1b9 {
rankdir=TB;
ranksep=0.15;
nodesep=0.15;
size="8.0, 12.0";
  "Matrix" [fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,URL="#pymel.core.datatypes.Matrix",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8];
  "MatrixN" -> "Matrix" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "MMatrix" -> "Matrix" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "MatrixN" [fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,URL="../pymel.util.arrays/pymel.util.arrays.MatrixN.html#pymel.util.arrays.MatrixN",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8];
  "Array" -> "MatrixN" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "MMatrix" [shape=box,fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=8,style="setlinewidth(0.5)",height=0.25];
  "Array" [fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,URL="../pymel.util.arrays/pymel.util.arrays.Array.html#pymel.util.arrays.Array",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8];
}

class Matrix(*args, **kwargs)

A 4x4 transformation matrix based on api Matrix

>>> from pymel.all import *
>>> import pymel.core.datatypes as dt
>>> 
>>> i = dt.Matrix()
>>> print i.formated()
[[1.0, 0.0, 0.0, 0.0],
 [0.0, 1.0, 0.0, 0.0],
 [0.0, 0.0, 1.0, 0.0],
 [0.0, 0.0, 0.0, 1.0]]
>>> v = dt.Matrix(1, 2, 3)
>>> print v.formated()
[[1.0, 2.0, 3.0, 0.0],
 [1.0, 2.0, 3.0, 0.0],
 [1.0, 2.0, 3.0, 0.0],
 [1.0, 2.0, 3.0, 0.0]]
a00
a01
a02
a03
a10
a11
a12
a13
a20
a21
a22
a23
a30
a31
a32
a33
adjoint()
Returns the adjoint (adjugate) Matrix
apicls
alias of MMatrix
asMatrix(percent=None)
The matrix representation for this Matrix/TransformationMatrix/Quaternion/EulerRotation instance
assign(value)
blend(other, weight=0.5)
Returns a 0.0-1.0 scalar weight blend between self and other Matrix, blend mixes Matrix as transformation matrices
data
The Matrix/FloatMatrix/TransformationMatrix/Quaternion/EulerRotation data
det()
Returns the determinant of this Matrix instance
det3x3()
Returns the determinant of the upper left 3x3 submatrix of this Matrix instance, it’s the same as doing det(m[0:3, 0:3])
det4x4()
Returns the 4x4 determinant of this Matrix instance
get()
Wrap the Matrix api get method
homogenize()
Returns a homogenized version of the Matrix
inverse()
Returns the inverse Matrix
isEquivalent(other, tol=1e-10)
Returns true if both arguments considered as Matrix are equal within the specified tolerance
isSingular()
Returns True if the given Matrix is singular
matrix
The Matrix representation for this Matrix/TransformationMatrix/Quaternion/EulerRotation instance
rotate
The rotation expressed in this Matrix, in transform space
scale
The scale expressed in this Matrix, in transform space
setToIdentity()
m.setToIdentity() <==> m = a * b Sets MatrixN to the identity matrix
setToProduct(left, right)
m.setToProduct(a, b) <==> m = a * b Sets MatrixN to the result of the product of MatrixN a and MatrixN b
translate
The translation expressed in this Matrix, in transform space
transpose()
Returns the transposed Matrix
weighted(weight)
Returns a 0.0-1.0 scalar weighted blend between identity and self

Previous topic

pymel.core.datatypes.FloatVector

Next topic

pymel.core.datatypes.MatrixN

Core

Core Modules

Other Modules

This Page