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_PARENTviz.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_GLOBALviz.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_LOCALviz.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.
This command will return the transform of the object in the specified coordinate system.
A viz.Transform object