Snap toggle

 From:  Andrei Samardac
5924.1 
Michael could you pleas make script that toggle between straight and object snap. As always I need or one or another but not both at the same time. In big models there is a lot of snap points so for example to move object I have to turn on straight snap and turn off object snap, and when I want to draw curves I have to turn on object snap and than turn off straight snap. My experience show that it will be good to have this script to toggle snap.