MohoLayer:GetLayerTransform(frame, matrix, doc)

Version added: before 9.5

Arguments:

Name Type Description Default Ver
frame int Frame number < 9.5
matrix Matrix Transform matrix to fill in < 9.5
doc MohoDoc The document object < 9.5

Return value:

void 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)

Search results

Usage of 'GetLayerTransform' is found in the following scripts:

<< Back to MohoLayer