Thanks guys!
Unfortunately - i was wrong That solution doesnt help in fact. Im imagine all of thet in the wrong way.
The final goal which im trying to achieve is to know when the object move off screen. For example - we look straight at the object = color is red, object move to side of the screen (left, right or top, bottom) = object becomes green.
It looks like Object position node gives me what i want, but i cant figure out how to convert the ViewportUV to proper values, like 0 - if object are center on the screen, and -1 if object on side of the screen.