GetScalingValues (SITransformation)

Description

Returns the X, Y and Z scaling values for this transformation.

Note: This method uses output arguments. C# and some scripting languages (such as JScript and PerlScript) don't support arguments passed by reference. However, there is a alternate version of this method which is considered safe to use with C#, JScript and PerlScript: SITransformation.GetScalingValues2

Scripting Syntax

SITransformation.GetScalingValues( X, Y, Z )

C# Syntax

SITransformation.GetScalingValues( Object& out_pvarX, Object& out_pvarY, Object& out_pvarZ );

Parameters

Parameter

Type

Description

X [out]

Double

X scaling value.

Y [out]

Double

Y scaling value.

Z [out]

Double

Z scaling value.

Examples

VBScript Example

set oCube = ActiveSceneRoot.AddGeometry("Cube","MeshSurface")
Scale oCube, 0.90715667311412, 1, 1, siRelative, siLocal, siObj, siXYZ
set oTransform = oCube.Kinematics.Global.Transform
oTransform.GetScalingValues X, Y, Z
Application.LogMessage "Scaling values: " & X & "," & Y & "," & Z 

See Also

SITransformation.GetScalingValues2

SITransformation.SetScalingFromValues



SOFTIMAGE|XSI v6.01     

Return to Softimage XSI Index