pymel.core.general.scaleComponents

static general.scaleComponents(*args, **kwargs)

This is a limited version of the scale command. First, it only works on selected components. You provide a pivot in world space, and you can provide a rotation. This rotation affects the scaling, so that rather than scaling in X, Y, Z, this is scaling in X, Y, and Z after they have been rotated by the given rotation. This allows selected components to be scaled in any arbitrary space, not just object or world space as the regular scale allows. Scale values are always relative, not absolute.

Flags:
Long name (short name) Argument Types Properties
pivot (p) float, float, float ../../../_images/create.gif
 
The pivot position in world space (default is origin)
rotation (ro) float, float, float ../../../_images/create.gif
 
The rotational offset for the scaling (default is none) Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.scaleComponents

Example:

import pymel.core as pm

pm.scaleComponents( 2, 2, 2, pivot=(0, 10, 0), rotation=(30, 40, 50) )

Previous topic

pymel.core.general.scale

Next topic

pymel.core.general.select

Core

Core Modules

Other Modules

This Page