ScaleMaterial()
Syntax
ScaleMaterial(#Material, x, y [, Layer])Description
Scales the material. The parameters 'x' and 'y' are scale factors.
Parameters
#Material The material to use. x, y The scale factors (the current material size is multiplied by these values):
- a value of 1.0 means that the size isn't changed
- a value between 0.0 and 1.0 means that the material is scaled down (ie: a scale of 0.5 will be half the size)
- a value above 1.0 means that the material is scaled up (ie: a scale of 2.0 will double the size)
Layer (optional) The layer to scale. The first layer is zero (if this parameter is omitted, the layer zero is scaled).
Return value
None.
Remarks
To get the current scale values, use GetMaterialAttribute().
See Also
GetMaterialAttribute()
Supported OS
All