need python command for close and reset poly selection Constraint

116 views
Skip to first unread message

Vishal Kadam

unread,
Jun 17, 2020, 1:28:34 AM6/17/20
to Python Programming for Autodesk Maya
Have a mel command

resetPolySelectConstraint; evalDeferred("deleteUI polySelectionConstraintPanellWindow");

need python command for close and reset poly selection Constraint

Roy Nieterau

unread,
Jun 18, 2020, 4:41:03 AM6/18/20
to Python Programming for Autodesk Maya
Are you looking to close the UI or just apply a reset of the polySelect settings?

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;")

Would this work for you?

Vishal Kadam

unread,
Jun 18, 2020, 6:48:54 AM6/18/20
to Python Programming for Autodesk Maya
thanks that worked
Reply all
Reply to author
Forward
0 new messages