Yes, I understand that so far, but matView and matProj are both among the predefined matrices (manual -> Engine functions -> matrix calculations). So you can just copy them to your material matrix (matMtl), or to matEffect, and use it in subsequent shaders.

For deciding whether an event is triggered by ENABLE_TREE or ENABLE_VIEW you could use the my pointer, which should be zero in an ENABLE_VIEW event. Or even easier, use a dummy material that only has a view event that copies the matrices.