uievent in APEX

   400   3   1
User Avatar
Member
13 posts
Joined: May 2018
Offline
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
User Avatar
Member
8171 posts
Joined: July 2005
Offline
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
User Avatar
Member
13 posts
Joined: May 2018
Offline
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?
User Avatar
Staff
143 posts
Joined: May 2021
Offline
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.
  • Quick Links