ScaleX

The ScaleX accessor (class ) lets you set the horizontal scaling factor of an object. When the value of this accessor is changed, the object is scaled based on the new value. The scaling factor is stored every time it is set so resetting the scale to a different value scales the object by the delta of the old and new scaling factors.

Not all graphic objects are sensitive to the scaling factor. For example, text objects cannot be scaled.

Parameters

  • Graphic Node: Name of the graphic node to scale. It must be a graphic node.

  • Center X: X-coordinate of the center of the scale (Float or Integer).

  • The type of this value is Float.

Example

This example shows a Scale accessor attached to a transformer object. The full prototype using this accessor is the transformer prototype in the samples library.