Houdini 21.0 Nodes APEX nodes

uievent::CurViewport

Fetches information about the viewport transform from the uievent.

On this page
Since 21.0

This node provides access to the view transform matrix and additional information that can be used to scale controls relative to the viewport.

Inputs

uievent: Dict

The dictionary containing various uievent states that can be queried by the control graph gadget during UI interactions.

Outputs

xform: Matrix4

The view transform matrix.

scale: Float

Using this scale factor, along with mininverted and the pivot position of a control in 3D space, you can compute a consistent scale factor such that the control remains the same size in the viewport regardless of its position. If pos is the position of the control, and pos4 = Vector4(pos[0], pos[1], pos[2], 1.0), the consistent scale factor is scale * DotProduct(pos4, mininverted).

mininverted: Vector4

Used to compute a consistent scale factor for keeping controls the same size in the viewport regardless of their position. See scale for more information.

See also

APEX nodes