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

<bone>.getMatrix

Returns the transform matrix

<bone>.getMatrix(  
mode = viz.ABS_PARENT  
)  
mode = viz.ABS_PARENT
Can be one of the following:

Transform modes

viz.ABS_PARENT
viz.REL_PARENT

Return the value in the bones local coordinate system.

viz.ABS_GLOBAL
viz.REL_GLOBAL

Return the value in the global coordinate system.

viz.AVATAR_LOCAL

Return the value in the avatars local coordinate system.

viz.AVATAR_WORLD

Return the value in the avatars global coordinate system.

Remarks

Use this command to retrieve the transform matrix of the bone. The transform will be relative to the coordinate system specified by the mode parameter.

Return Value

A viz.Transform object

Example

head = avatar.getBone('skel_Head')

mat = head.getMatrix()

print(mat.getEuler())

See also

<bone>.setMatrix