Scripting Command MARUI_Snapping
This command controls snapping when moving objects in VR.
Parameters:
-tolerance (-tol) <float>
Set / get snapping distance/tolerance in real-world mm.
-positionalSnapping (-ps) <int>
Set / unset snapping by ID. IDs are bits and may be added (binary-or) to enable multiple snapping targets.
0x0000 = Snapping turned off.
0x0001 = Snapping to maya scene units.
0x0002 = Snapping to Polygon vertices and NURBS CVs.
0x0004 = Snapping to NURBS curves.
0x0008 = Snapping to Polygon meshes (faces).
0x0010 = Snapping to Joints.
0x0100 = Snapping to maya scene x-zero.
0x0200 = Snapping to maya scene y-zero.
0x0400 = Snapping to maya scene z-zero.
0x0700 = Snapping to maya scene zero (x, y, and z).