Detect change position in view 3D

Hi guys, I´m already working in an addon, but I need to know how to detect changes in the view 3D, and exec a function, I can have the values of the perspective_matrix, but I need to detect any change on it, I hope you can clue me.
Thanks a lot in advance.

p.s. sorry about my english.

do you mean a callback? I don’t think there’s a callback system in C, as there’s also no possibility for python to hook into event. It’s probably done somewhere in the code and all related stuff done right there.

Thank´s CoDEmanX, sorry to hear about it, I really need to know if the view changes its direction, I´ll try to find another alternative, I remember I saw a code to monitor if some prop changes, but I can´t find the forum, maybe I´d dream it.
Regards.

Hi CoDEmanX, I think I found an alternative: modal execution, will fit my needs, regards!

You could also use a scene update handler, but it can result in a lot of overhead. It’s basically like https://youtu.be/4vUBsTJYK28

Thanks a Lot, I’ll give it a try!

Thanks CoDEmanX, I’ll give it a try.
Regards.