Description
Scales elements to an absolute ratio of the original geometry or by a relative amount.
Scripting Syntax
Scale( [InputObjs], [X], [Y], [Z], [Delta], [RefMode], [Center], [AxesFilter], [Reference], [SplitLocalComponents], [PropTagOnly], [Pivot], [PivotX], [PivotY], [PivotZ], [ConstructionMode], [SlideComponents] )
Parameters
|
Parameter |
Type |
Description |
|
InputObjs |
List of objects or components to scale. Default Value: Selected elements |
|
|
X |
X scaling Default Value: 1.0 |
|
|
Y |
Y scaling Default Value: 1.0 |
|
|
Z |
Z scaling Default Value: 1.0 |
|
|
Delta |
Whether to scale the object a relative to its current size or the geometry Default Value: siRelative |
|
|
RefMode |
The reference mode to scale orientated to Default Value: siLocal |
|
|
Center |
Whether to scale the object or its center. Note: If an object does not have a scaleable center, then scaling its center scales the object. Default Value: siObj |
|
|
AxesFilter |
Determines which of the x,y,z arguments are valid (used with Absolute mode only). Default Value: siXYZ |
|
|
Reference |
If using the By Reference mode, specified the reference to use Default Value: "" Possible Values: • : Reference not used (World) • Grid: Use the center of the Grid |
|
|
SplitLocalComponents |
Specifies whether to scale all components independently in Local mode Default Value: False |
|
|
PropTagOnly |
Specifies whether to restrict proportional to tagged components only Default Value: False |
|
|
Pivot |
If true the specified global pivot point is used for scaling Default Value: False |
|
|
PivotX |
X position of the pivot point Default Value: 0.0 |
|
|
PivotY |
Y position of the pivot point Default Value: 0.0 |
|
|
PivotZ |
Z position of the pivot point Default Value: 0.0 |
|
|
ConstructionMode [in/out] |
In which construction mode will the deformation be applied. This only applies when scaling geometry components. Default Value: Use the current construction mode |
|
|
SlideComponents |
Constrain components to surface during translation. Works like shrink wrap for points/polygons while edges are constrained along adjacent polygon edges. Currently only supported for mesh objects. Default Value: False |
Examples
VBScript Example
dim object set object = GetPrim( "Null" ) ' Scale the selected objects to 5 times their current size in X Scale ,5 ' Scale the selected objects 5 times their geometric size in Y Scale ,,5,,siAbsolute ' Scale a given object to half its current size in X, Y and Z Scale object,0.5,0.5,0.5
See Also
Autodesk Softimage v7.5