I'm trying to assign if $ != undefined do deleteModifier $ 1 to hotkey. Everything works fine but gives error if object has no modifiers. How to check if object has got (or hasn't got) any modifier?
Another method if you want to delete only one type of modifier... --Delete All Bend Modifiers ( theBends = getClassInstances Bend for b in theBends do ( refsArray = refs.dependentNodes b deleteModifier refsArray b ) )