Dynamic component : color change if camera position matches condition

Hi everybody !
I’m curious about camera position datas regarding dynamic components :
Would there be a code that could change a component attributes depending on camera position ?
For example, if the camera goes through a cercle, its color would change…
I would like to create a game using “3D connexion Space Mouse”. If the camera movement is good, then the circles turn green.

@ Neil_Burkholder I saw an interesting post about 3D mouse. Could you help in this project ?