Run Script after Unfitting Clothing

I was hoping to run a script AFTER a particular pair of shoes are un-fitted (or deleted or even hidden) from a genesis 8 female. My reason for this is the shoes set a rather-hard-to-find hidden set of properties in my genesis female, when they're fitted to her. When I remove her shoes, it would be helpful if those properties are restored. I'd imagine there's some kind of callback required for this to work, but I can't find a sample script that comes close to doing this. Can anyone help?
Thanks.