( maxHWND = windows.getMaxHWND() -- handle to 3ds Max fn findresetbutton = ( local maxChildren = windows.getChildrenHWND maxHWND -- all of 3ds Max's children elements for i = 1 to maxchildren.count do ( if maxchildren[i][maxchildren[i].count] == "Reset" then ( return maxchildren[i] exit ) ) ) sel = selection as array max select none for o in sel do ( for i = 1 to o.modifiers.count do ( if classof o.modifiers[i] == Skin_Wrap then ( select o max modify mode modpanel.setcurrentobject o modpanel.setcurrentobject o.modifiers[i] global thebutton = findresetbutton() local thebutton_handle = thebutton[2] UIAccessor.pressButtonByName thebutton_handle "Reset" --o.modifiers[i].reset() --fucking broken. modpanel.setcurrentobject o.modifiers[1] Print ("Found + Reset " + o.name) ) ) ) )