nuke.curvelib.CMatrix4
- class nuke.curvelib.CMatrix4
Bases:
object
A 4x4 matrix with methods for affine transformations.
Methods
Set this matrix to be the identity matrix.
Post-multiply this matrix by a rotation around the X axis.
Post-multiply this matrix by a rotation around the Y axis.
self.rotateY(angleInRadians) -> None Post-multiply this matrix by a rotation around the Z axis.
Post-multiply this matrix by a scale transformation.
Post-multiply this matrix with a skew transformation.
Post-multiply this matrix by a translation matrix.
Set this matrix to be a translation matrix, replacing any existing values.
Transpose the matrix in-place.
- __add__(value, /)
Return self+value.
- __mul__(value, /)
Return self*value.
- makeIdentity() None
Set this matrix to be the identity matrix.
- rotateX(angleInRadians) None
Post-multiply this matrix by a rotation around the X axis.
- rotateY(angleInRadians) None
Post-multiply this matrix by a rotation around the Y axis.
- rotateZ()
self.rotateY(angleInRadians) -> None Post-multiply this matrix by a rotation around the Z axis.
- scale(x, y, z) None
Post-multiply this matrix by a scale transformation. The y and z parameters may be left out; if so the scale is uniform along all three axes.
- skew(x, y, z) None
Post-multiply this matrix with a skew transformation. The y and z parameters may be left out; if so, the skew is in the X direction only.
- translate(x, y, z) None
Post-multiply this matrix by a translation matrix.
- translation(x, y, z) None
Set this matrix to be a translation matrix, replacing any existing values.
This is different from other methods in this class as it replaces, rather than multiplying by, the existing values in the matrix.
- transpose() None
Transpose the matrix in-place.