MohoLayer:GetLayerTransform(frame, matrix, doc)

Version added: before 9.5

Gets the layer's transformation at a given frame

ArgumentTypeDescriptionDefaultVer
frameintFrame number< 9.5
matrixMatrixTransform matrix to fill in< 9.5
docMohoDocThe document object< 9.5

Return type : none

Gets the layer's transformation at a given frame. The layer transform includes things like layer scale, rotation, and translation.
For layers with no parent it also includes some information about camera transform, course the resulting matrix is the layer transformation premultiplied with the camera matrix (MohoDoc:GetCameraMatrix)
String "GetLayerTransform" is found in the following scripts:

MR Transform Rig Tool (by eugenebabich)

FO_Utilities (by Lukas)

Bind points modification (by A.Evseeva)

Invert layer transform (by A.Evseeva)

Reset layer transform (by A.Evseeva)

See all...