SITransformation.GetScalingValues
 
 
 

SITransformation.GetScalingValues

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

C# Syntax

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

Scripting Syntax

SITransformation.GetScalingValues( out_pvarX, out_pvarY, out_pvarZ );

Parameters

Parameter Type Description
out_pvarX Double X scaling value.
out_pvarY Double Y scaling value.
out_pvarZ 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