Hi MPL
Reporting back on the functions I outlined in this post using the session files posted there using v2.24 of your script:
https://forum.cockos.com/showpost.ph...&postcount=233
In all cases I had the following options selected:
Scenario A1
Importing the Vocal track only [new track at end of tracklist], as a new track in Destination Session A from Source Session A seems to work using just the first option like this:
Both the Vocal and the sends with their settings and the Reverb track is imported as if it's one connected object. This is good although I would expect an explicit option for this such as "import receive tracks by name if not already in destination project". With such an option available the script would:
1. Check to see if the same named track as the associated receive was already in the project
2. If not then import the receive track (like the current behaviour)
3. If receive did already exist in destination project then create a send to that track on the imported track with the send value that exist in the source project
The same result happens with Scenario A1 if I import the Vocal track only with the following options:
This is odd - I don't understand the purpose of "Create links if receive tracks presented". Especially since I can't find a way of importing just the values of sends (I explain this in Scenario C)
Scenario A2
Importing both Vocal and Reverb with just "Import sends/receives" checked imports both tracks but not the sends.
If I also select "Create links if receive tracks presented" then the send is imported correctly.
Scenario B1
This scenario was to have Destination Session B open and import just the vocal track from Source Session A.
Since the Reverb track already exists by name in the destination session I was hoping the script would have a process outlined above with steps 1 to 3: to check whether it exists in the project first. What actually happens is the receive is imported as a duplicate track with a duplicate send name which is very confusing.
Can this be fixed?
Scenario B2
This scenario was to import just the Vocal track from Source Session B to Destination Session B and have the send to the existing Reverb track created but since there is no delay track in the session import that from the source session. The Delay track is automatically imported but the Reverb track is again imported as a duplicate.
Scenario C
This scenario was to have Destination Session C open and import just the send values from Source Session C.
I have tried to make this work by running your script with the Vocal track set to [match by name: replace] or [match by name: mark only] and "Import send/receives" checked or "Create links if receive tracks presented" also.
In both cases the Reverb and Delay tracks are imported as duplicates and new sends are created on the Reverb track to these new tracks.
What I wanted was the script to:
1. check if the source tracks have sends that match the name
2. if they do then just change the values of the existing sends to match the source tracks sends
3. if there is a send in the source track that is marked that doesn't exist in the matched destination track then to create the corresponding receive and a new send to it IF a new option in the script is checked to "import receive tracks by name if not already in destination project".
As I described in my original post, maybe it would be best to take this one step at a time and leave out the automatic creation of receives first to avoid too much complication! Especially when importing tracks that have sends to receive tracks that also themselves have sends!