MohoLayer:SetScaleNormalization(f)

Version added: 11

Added in version 11

ArgumentTypeDescriptionDefaultVer
freal11

Return type: none

This routine sets the scale normalization factor that is to be applied subsequently by MohoLayer:ScaleNormalization.

Only the normalization factor for the selected layer is set. If the layer has ancestors or descendants and it is required to change their individual scale normalization factors this must be done separately for each layer.


Whilst any value may be set, a typical use would be to set the inverse of the amount of scaling done on a layer. For example: take the average the scale x,y values and then divide 1 by this value - e.g.
SetScaleNormalization ( 1/((scale.x+scale.y)/2) )