Go to: Synopsis. Return value. Related. Flags. Python examples.
scale(
x y z [object 1] [object 2] ...
, [absolute=boolean], [centerPivot=boolean], [distanceOnly=boolean], [objectCenterPivot=boolean], [pivot=[double, double, double]], [reflection=boolean], [reflectionAboutBBox=boolean], [reflectionAboutOrigin=boolean], [reflectionAboutX=boolean], [reflectionAboutY=boolean], [reflectionAboutZ=boolean], [reflectionTolerance=float], [relative=boolean], [scaleX=boolean], [scaleXY=boolean], [scaleXYZ=boolean], [scaleXZ=boolean], [scaleY=boolean], [scaleYZ=boolean], [scaleZ=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
scale is undoable, queryable, and editable.
The scale command is used to change the sizes of geometric
objects.
The default behaviour, when no objects or flags are passed,
is to do a relative scale on each currently selected object
object using each object's existing scale pivot point.
None
In query mode, return type is based on queried flag.
move, rotate, xform
absolute, centerPivot, distanceOnly, objectCenterPivot, pivot, reflection, reflectionAboutBBox, reflectionAboutOrigin, reflectionAboutX, reflectionAboutY, reflectionAboutZ, reflectionTolerance, relative, scaleX, scaleXY, scaleXYZ, scaleXZ, scaleY, scaleYZ, scaleZ
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
import maya.cmds as cmds
cmds.scale( 1, 1, 1 )
cmds.scale( 3, 3, 3, 'curve1', pivot=(1, 0, 0), absolute=True )