The snapMode command is used to control snapping. It toggles the snapping modes in effect and sets information used for snapping.
Set curve snap mode
Set the distance for the snapping to objects such as a lines or planes. Flag can have multiple arguments, passed either as a tuple or a list.
Number of extra magnets to snap onto, regularly spaced along the edge.
Precision for edge magnet snapping.
Set grid snap mode
While moving on live polygon objects, snap to its face centers.
While moving on live polygon objects, snap to its vertices.
Snap UV to the center of the pixel instead of the corner.
Snap UVs to the nearest pixel center or corner.
Set point snap mode
Tolerance defines the size of the square region in which points must lie in order to be snapped to. The tolerance value is the distance from the cursor position to the boundary of the square (in all four directions).
If useTolerance is set, then point snapping is limited to points that are within a square region surrounding the cursor position. The size of the square is determined by the tolerance value.
uvTolerance defines the size of the square region in which points must lie in order to be snapped to, in the UV Texture Editor. The tolerance value is the distance from the cursor position to the boundary of the square (in all four directions).
Set view-plane snap mode
Derived from mel command maya.cmds.snapMode