ScaleObject Object Command

SCALEOBJECT Object Commands

Scales objects by a percentage or relative amount.

scaleobject <[SCALE scalex scaley] | [OLDPOINT oldx oldy NEWPOINT newx newy]> [ROTATE angle | SKEW slantangle twistangle] [ABOUT | ABOUTCENTER] [DOCUMENT name | WINDOW name | OBJECTID number]

SCALE/d The percentage scale.

OLDPOINT/d The relative scale start point.

NEWPOINT/d The relative scale end point.

ROTATE/d The rotation angle. Default=0.

SKEW/d The slant and twist angle.

SLANT/d The slant angle.

TWIST/d The twist angle.

ABOUT The scale reference point.

pointx/d The horizontal scale point.

axisx/k The horizontal scale axis.

Options: LEFT | CENTER | RIGHT.

pointy/d The vertical scale point.

axisy/k The vertical scale axis.

Options: TOP | MIDDLE | BOTTOM.

ABOUTCENTER Scales about its center. Default.

DOCUMENT/s The document name. Default=current.

WINDOW/s The window name. Default=current.

OBJECTID/i The number of the object to manipulate.

Default=current.

Notes:

When OLDPOINT and NEWPOINT are used to scale an object, the amount the object is scaled is determined by taking the differences between the horizontal and vertical positions of these points and relating them to the size of the object.

Examples:

scaleobject scale 80 100

scaleobject oldpoint 1.25 newpoint 4.15

scaleobject scale 50 50 about left top

 

ScaleObject  Command Definition  url:PGScmd/scaleobject
  created:2006-03-31 10:52:52   last updated:2006-03-31 10:52:52
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For ScaleObject
Dan Kilroy wrote...2006-05-03 19:18:59

Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above.

Scales the {...} .

ScaleObject ([ABOUTCENTER | ABOUT <LEFT|CENTER|RIGHT|x> <TOP|MIDDLE|BOTTOM|y>] <[SCALE xscale yscale] | [<OLDPOINT x y> <NEWPOINT x y>]> [ROTATE angle | SKEW slant twist])


Parameters:


Results:


Notes:


See Also:


Examples:
Python:


ARexx:

Applescript:

User Contributed Comments For ScaleObject