from maya import mel
# Ensure command is available in mel
# This can happen when running standalone
if not mel.eval("exists resetPolySelectConstraint"):
mel.eval("source polygonConstraint")
# Reset all parameters
mel.eval("resetPolySelectConstraint;")