In this update, the script will work on sub-object selections. Also, a bug in the first version is fixed, when you switch to another mode other than the Modify Panel, the first version gives an error, ...