TransformPropertyMatrixAsList
Type
operator
Summary
The matrix values of a transform.
Syntax
the matrix of <mTransform>
Description
The matrix values of mTransform as a list of 6 numbers.
Parameters
Name | Type | Description |
---|---|---|
mTransform | An expression which evaluates to a transform. |
Examples
variable tTransform
put transform with translation [20,50] into tTransform
// Get the current transform matrix
variable tMatrix
put the matrix of tTransform into tMatrix
// Directly set the components
put 2.5 into element 1 of tMatrix
put 0 into element 2 of tMatrix
put 0 into element 3 of tMatrix
put 2.5 into element 4 of tMatrix
// Update the transform with the new values
set the matrix of tTransform to tMatrix