I need to change and fix a few things with this script. Where do I insert a try-clause on all layers to determine the layer group not selected not to be included in the export ?
I want to insert this condition into the script, the script which exports only selected layer groups;
Look for a template layer within the layer group as the script presently does
If no template layer exists, search for a template layer outside of the layer group.
If one exists include it either at the top or bottom of the layer group with the dialog that is present in the script.
If no template layer exists outside of the layer group either, save the layer group regardless.