I have no idea how to check the current state the contraints are in, so as to make some simple if commands, and assign this script to a hotkey. Just in case, I'm talking about Maya 2016's new edge constraint feature found in the tool panel (I think they were in the modeling toolkit in previous versions, but broken). I know…
I removed slide constraint after this script is not working why ( I don't use that) string $SlideStatus = `xformConstraint -query -type`; if ($SlideStatus == "none") {dR_DoCmd("slideEdge");inViewMessage -smg "Slide Edge is On" -pos topCenter -bkc 0x00000000 -fade;} else if ($SlideStatus == "edge")…
I've made this script to toggle between Slide Edge, Slide Surface and Off states consequentially with a single hotkey. Feel free to modify it to suit your needs or to make your own from a scratch. The command you were looking for is `xformConstraint -query -type`. string $SlideStatus = `xformConstraint -query -type`; if…