Vizard 7 » Command Index » Vizard objects » bone » <bone>.setMatrix
7.6

<bone>.setMatrix

Set the bones transform matrix

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

Transform modes

viz.ABS_PARENT

Perform the transformation absolutely in the bones local coordinate system.

viz.ABS_GLOBAL

Perform the transformation absolutely in the bones global coordinate system.

viz.ABS_LOCAL
viz.REL_LOCAL

Perform the transformation relatively in the bones local coordinates system.

viz.REL_PARENT

Perform the transformation relatively in parent bones coordinate system.

viz.REL_GLOBAL

Perform the transformation relatively in bones global coordinate system.

viz.AVATAR_LOCAL

Perform the transformation absolutely in the avatars local coordinate system.

viz.AVATAR_WORLD

Perform the transformation absolutely in the avatars global coordinate system.

Remarks

This will set the tranformation matrix of the bone:

Note: The bone must be locked in order to update its transform

Return Value

None

Example

head = avatar.getBone('skel_Head')
trans = viz.Matrix()
.
.
.
head.setMatrix(trans)

See also

<bone>.getMatrix
<bone>.lock
<bone>.unlock