MohoLayer:SetScaleNormalization(f)

Version added: 11.0

Arguments:

Name Type Description Default Ver
f real 11.0

Return value:

void
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) )
<< Back to MohoLayer