Go to: Synopsis. Return value. Keywords. Flags. MEL examples.
matrixUtil [-inverse] [-quaternion float float float float] [-relative] [-rotation float float float] [-scale float float float] [-shear float float float] [-translation float float float] [-transpose]
matrixUtil is undoable, queryable, and editable.
Command to deal with matrix, composition and decomposition
In query mode, return type is based on queried flag.
matrix, decomposeMatrix, decomposeMatrix
inverse, quaternion, relative, rotation, scale, shear, translation, transpose
Long name (short name) |
Argument types |
Properties |
-inverse(-iv)
|
|
|
|
Compose or query will return the inversed matrix.
|
|
-quaternion(-qt)
|
float float float float
|
|
|
Compose, edit or query a matrix using specified quaternion values as rotation components.
|
|
-relative(-rt)
|
|
|
|
Add translation, rotation, scale or shear, instead of seting it as absolute.
|
|
-rotation(-r)
|
float float float
|
|
|
Compose, edit or query a matrix using specified values as rotation components.
|
|
-scale(-s)
|
float float float
|
|
|
Compose, edit or query a matrix using specified values as scale components.
|
|
-shear(-sh)
|
float float float
|
|
|
Compose, edit or query a matrix using specified values as shear components.
|
|
-translation(-t)
|
float float float
|
|
|
Compose a matrix using specified values as translation components.
|
|
-transpose(-tp)
|
|
|
|
Compose or query will return the transposed matrix.
|
|
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can be used more than once in a command.
|
//compose a matrix from translation, rotation, scale and shear
matrixUtil -t 10 20 30 -r 90 0 90 -s 2 3 4 -sh 1 0 0
//get translation
matrixUtil -q -t 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
//get rotation
matrixUtil -q -r 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1