<node3d>.getMatrix

Returns 4x4 transform matrix

 

<node3d>.getMatrix(
    mode = viz.ABS_PARENT    
    node = ''    

)

 

mode = viz.ABS_PARENT

One of the following transform modes:

Transform modes

viz.ABS_PARENT
viz.REL_PARENT

Return the matrix in the parents coordinate system. If a sub-node name is specified, it will return the accumulated matrix from the sub-node up to the parents coordinate system.

viz.ABS_GLOBAL
viz.REL_GLOBAL

Return the matrix in global coordinates. If a sub-node name is specified, it will return the accumulated matrix from the sub-node up to the global coordinate system.

viz.ABS_LOCAL
viz.REL_LOCAL

This mode is only usefull when specifying a sub-node name as well. If the specified sub-node is an OSG transform node, it will return its matrix.


node = ''

Name of sub-node to retrieve transform matrix of.


Remarks

This command will return the transform of the object in the specified coordinate system.

Return Value

A viz.Transform object