Vizard 7 » Command Index » Vizard objects » transform » <transform>.set
7.7

<transform>.set

This sets the transformation to the given values

<transform>.set(  
args  
)  
args
This can be either 16 numbers, a list of 16 numbers, or a <vizmat>.Transform object.

Remarks

This sets the 4x4 matrix of the transform to the specifed parameters.

Return Value

None

Example

X = vizmat.Transform()

# Set each individual value of the matrix
X.set(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)

# Set the value of the matrix to the numbers in data
data = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
X.set(data)

# Set the value of the Transform to the value of Y
Y = vizmat.Transform()
X.set(Y)