Give access to the projection matrix of a camera in C++

Hi,
I am currently developing a new version of PONK, the TouchDesigner-to-MadMapper laser tool.

Since the PONK protocol currently only supports 2D paths, I am performing the 3D-to-2D projection within our C++ SOP. While I can successfully retrieve the camera position through the API, I am unable to access the projection matrix directly.

Current Workaround: I’ve had to expose the projection matrix as a manual parameter on the PONK sender node. This is cumbersome for users, as there is no clean way to auto-fill the needed expressions on these parameters via C++.

Could you extend the C++ API to allow developers to retrieve the projection matrix from a referenced Camera COMP? This would significantly streamline the workflow for any plugin performing spatial transformations.

Best, Colas

1 Like

Hi @Tyrell

thank you for suggesting this, we’ve added it as an RFE for consideration in future development.

cheers
Markus

Amazing thanks a lot markus