MohoLayer:GetLayerTransform(frame, matrix, doc)

Version added: before 9.5

Gets the layer's transformation at a given frame

ArgumentTypeDescriptionDefaultVer
frameintFrame number< 9.5
matrixLM_MatrixTransform 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:

Bind points modification (by A.Evseeva)

Invert layer transform (by A.Evseeva)

Reset layer transform (by A.Evseeva)

See all...