GetTranslationValue s (SITransformation)

Description

Returns the X, Y and Z translation 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.GetTranslationValues2

Scripting Syntax

    SITransformation.GetTranslationValues( X, Y, Z )

C# Syntax

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

Parameters

Parameter | Type | Description
X [out] | Double | X translation value
Y [out] | Double | Y translation value
Z [out] | Double | Z translation value

Examples

VBScript Example

    set oCube = ActiveSceneRoot.AddGeometry("Cube","MeshSurface")
    Translate oCube , 2.36313544550135, 0.117570382688882, -1.17570382688882E-02, siRelative, siView, siObj, siXYZ
    set oTransform = oCube.Kinematics.Global.Transform
    oTransform.GetTranslationValues X, Y, Z
    Application.LogMessage "Translation values: " & X & "," & Y & "," & Z

See Also

SITransformation.GetTranslationValues2 | SITransformation.SetTranslationFromValues

Autodesk Softimage v7.5