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 gives access to the view transform matrix and some information that can be used to scale controls relative to the viewport.

Inputs

uievent: Float

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

By using this scale factor in addition to mininverted, along with the pivot position of a control in 3D space you are able to compute a consistent scale factor such that the control will remain the same size in the viewport regardless of its position.

Given the position of the control as pos, let pos4=Vector4(pos[0],pos[1],pos[2],1.0), then scale * DotProduct(pos4, mininverted) will give this consistent scale factor.

mininverted: Vector4

The second necessary piece of data to compute a consistent scale factor to keep controls the same size in the viewport regardless of positioning. See scale for further details.

See also

APEX nodes