anything to help others out

and if there was a group object then many many many scripts would have been made
ps next time try searching the script forum (main points, yours were "group" and "hide" i guess) for this because it has been asked in different form any times