Skip to main content

TransformPropertyTranslation

Type

operator

Summary

The translation component of a transform.

Syntax

the translation of <mTransform>

Description

The translation of mTransform as a list of 2 numbers (the x and y offset values).

Parameters

NameTypeDescription

mTransform

An expression which evaluates to a transform.

Examples

variable tTransform
put transform with matrix [0, 2, -2, 0, 50, 100] into tTransform

// Store the old translation component
variable tTranslation
put the translation of tTransform into tTranslation

// Adjust the offset of the transformation
set the translation of tTransform to [element 1 of tTranslation + 5, element 2 of tTranslation + 5]
Thank you for your feedback!

Was this page helpful?