Script to get a name from a list of grouped layers
Hi.
I am trying to make a script that can grab a name from a list of grouped layers. I only need the name from one group at a time. (All of the other groups would not be visible, only the one I need will be visible).
So I am trying to make a script that can look for the only visible group from the list of grouped layer. Get the name of the visible layer and use that name to save out as jpeg.
Can someone please point me in the right direction?
Please see below for the layer structure.

Thanks.
