I would know if - in maya - I can get the state of the 'lock selection'. I have this command:
updateLockSelectionIcon;
this command locks and unlock. but there is no argument with. this is a switch which depends on its previous state. But in the script I need to put the lock selection active in first. by advance thank you.