```
hscriptMatrixExpression(expression)
```

→ tuple of tuple of floats

This function will force the return type to be an Hscript matrix. Because Hscript matrices can be be of different sizes, the value is returned as a tuple of tuples of floats. If you know the matrix is a particular size, you can construct a Matrix3/Matrix4 out of the return value.

Most of the time, you want to use hou.hscriptExpression() over this function.

```
xform = hou.Matrix4(hou.hscriptMatrixExpression('doptransform("/obj/dopnet1", "obj0", "Geometry")'))
```

Raises hou.OperationFailed if the expression is invalid or generates an error during evaluation.

See also |