Camera based selection in HUD


Hello MEL and Python Gurus!

I’m not a good scripter, to be more detailed i’m not one at all!
I need
script who shows is Camera Based Selection is OFF or ON on the headsUpDisplay on the viewport.
Can anybody help me?

Big Thanks in advice!



int$x = (`optionVar -q cameraNamesVisibility`);
if ($x == 1)
    print ("Camera Based Selection is ON!");
    print ("Camera Based Selection is OFF!");


Thank You, but i need info about Camera Based Selection on the HUD in viewport.