nuke.curvelib.CMatrix4

class nuke.curvelib.CMatrix4

Bases: object

A 4x4 matrix with methods for affine transformations.

Methods

makeIdentity

self.makeIdentity() -> None Set this matrix to be the identity matrix.

rotateX

self.rotateX(angleInRadians) -> None Post-multiply this matrix by a rotation around the X axis.

rotateY

self.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

self.scale(x, y, z) -> None Post-multiply this matrix by a scale transformation.

skew

self.skew(x, y, z) -> None Post-multiply this matrix with a skew transformation.

translate

self.translate(x, y, z) -> None Post-multiply this matrix by a translation matrix.

translation

self.translation(x, y, z) -> None Set this matrix to be a translation matrix, replacing any existing values.

transpose

self.transpose() -> None 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.