#
CwGetPosition

### Syntax:

    call CwGetPosition hObject, stem

            ("stem" is the name of a stem variable in which the results are
             stored.  There are 2 fields of the stem that are set.)

            hObject         (handle) An effect or group

            stem.X          (numeric) The X (horizontal) coordinate

            stem.Y          (numeric) The Y (vertical) coordinate

            stem.Width      (numeric) The width of the object

            stem.Height     (numeric) The height of the object

            stem.Rotation   (numeric) The angle of rotation of the object
                            (in degrees).

            stem.Xshear     (numeric) The angle of skew (0 to 80 degrees).

### Description:

This procedure gets the location, size, rotation and shear angle of the specified object. The returned location (stem.x, stem.y) is the location of the center of the object. Both the location and dimensions of the object (i.e. width and height) are measured in the current unit. Rotation is measured in degrees as is shear. In the latter, the angle specified is that of the vertical bars of the rectangle containing the object.

### Example:

    /* Shrink the first available object by a factor of 2. */
    o = CwFindNextObject(0)
    call CwGetPosition o, dim
    call CwSetPosition o, dim.x, dim.y, dim.width/2, dim.height/2, ,
            dim.rotation, dim.xshear

Functions by NAME | Index | Functions by PURPOSE