Vizard 8 » Command Index » Vizard objects » node3d » <node3d>.setMatrix
8.0

<node3d>.setMatrix

Set transform matrix of node

<node3d>.setMatrix(  
matrix  
mode = viz.ABS_PARENT  
node = ''  
)  
matrix
This can be a list of 16 numbers representing a 4x4 matrix or a <vizmat>.Transform object.
mode = viz.ABS_PARENT
Can be one of the following:

Transform modes

viz.ABS_PARENT

Perform the transformation absolutely in the parents coordinate system.

viz.ABS_GLOBAL

Perform the transformation absolutely in world coordinates.

viz.REL_LOCAL
viz.ABS_LOCAL

Perform the transformation in the objects local coordinates system.

viz.REL_PARENT

Perform the transformation relatively in the parents coordinate system.

viz.REL_GLOBAL

Perform the transformation relatively in the global coordinate system.

node = ''
The sub-node to apply the matrix to. Must refer to an osg::Transform node.

Remarks

This command will specify the translation, rotation, and scale of the node using a 4x4 transform matrix.

Return Value

None

See also

<node3d>.getMatrix
<node3d>.lookAt
<node3d>.billboard
<node3d>.setAxisAngle
<node3d>.setCenter
<node3d>.setEuler
<node3d>.setQuat
<node3d>.setPosition
<node3d>.setScale
<node3d>.getTransform