lstockli
If I understand what is happening, the original selections are made from sample metadata and their name is derived from that, but newly created selections aren't associated with the metadata so do not have a name to reflect the file it originated from.
For new sessions, if you want to keep the names of the original selections created from the metadata you could:
- Shrink a selection, and then with it still active
- Right click it and select copy selection and put it in the same group
- Adjust that selection's duration and position
This new selection will keep the same name as the first one created from the metadata so will still reflect the source file.
For existing sessions, you could use a script to automate renaming selections based on their overlap with file metadata. Something like:
group_name = 'MyGroupName'
group = data.selectionGroup(group_name)
for sel in group.selections():
for file in data.importedFiles():
if sel.startTime >= file.startTime() and sel.endTime <= file.endTime():
sel.name = file.fileName().split('/')[-1]
break
All the best,