$ 0 0 No worries, I realize it was for layer when I skimmed the script. Strangely enough it works with layer groups also.Thanks!