danr
Sept. 16, 2026 11:45:01
Hello,
i would like to extract the transform matrix from a "uievent::CurViewport" callback.
So the node expects a dictionary as an input, but what should or could be the contents of that dictionary, to extract a matrix from any type of UI event. Would appreciate any example or explanation on that type of nodes.
Thank you,
Dani
edward
Sept. 19, 2026 13:52:31
That is just a subgraph so you can dive inside and see for yourself. I did just that the keys (for each output respectively) are: vm_transform, vp_scale, vp_minverted
danr
Sept. 22, 2026 10:41:39
I dived into the subgraph to check it out, but i guess i am just missing some critical information here to understand what's going on with "vm_transform".
Connecting the subgraph to the output so it gets executed results in an identity matrix being output.
Looking at the docs, the description for the uievent input is: "The dictionary containing various uievent states that can be queried by the control graph gadget during UI interactions." So what is the control graph gadget and how would i be able to query the viewport camera matrix with this node, when I just navigate through the viewport?
Maybe i am missing something obvious here?
esttri
Sept. 23, 2026 03:58:26
the ui event graph is intendet for custom control graphs, not for rig graphs. custom control graphs get the uievent input automatically populated, it will have no effect for rig graphs though.