Vizard 7 » Command Index » Vizard objects » viewpoint » <viewpoint>.setMatrix
7.7

<viewpoint>.setMatrix

Set transform matrix of viewpoint

<viewpoint>.setMatrix(  
matrix  
mask = viz.HEAD_ORI  
mode = viz.ABS_PARENT  
)  
matrix
This can be a list of 16 numbers representing a 4x4 matrix or a <vizmat>.Transform object.
mask = viz.HEAD_ORI
Which orientation to apply the matrix to. Can be either viz.HEAD_ORI (default) or viz.BODY_ORI
mode = viz.ABS_PARENT
Can be one of the following:

Transform modes

viz.ABS_PARENT
viz.ABS_GLOBAL

Perform the transformation absolutely in world coordinates.

viz.REL_LOCAL
viz.ABS_LOCAL

Perform the transformation relative to the local coordinate system.

viz.REL_PARENT
viz.REL_GLOBAL

Perform the transformation relatively in world coordinates.

Remarks

This will set the transformation matrix of the viewpoint to the given 4x4 matrix

Return Value

None

Example

X = vizmat.Transform()
viz.MainView.setMatrix(X)

See also

<viewpoint>.setAxisAngle
<viewpoint>.setEuler
<viewpoint>.setQuat
<viewpoint>.setPosition