very simple solution (i don't recommend to use it, i'd sick to sws autocoloring to create visual neatness)
select all but the first folder and run the script
attention : if you run it twice you get the hell on earth
it stacks foldernames !
save it as !renchildtoparent.eel and load it in the actions
Code:
/*
* ReaScript Name: Rename selected tracks to Folder Parenttrack
* EEL script for Cockos REAPER
* dervied from script by spk77
* Licence: GPL v3
* Version: 1.0
*/
// Rename selected tracks to Parent_child
function main() local (sel_track_count, t_i, tr, first_item)
(
(sel_track_count = CountSelectedTracks(0)) ? (
t_i = 0;
Undo_BeginBlock();
loop(sel_track_count,
(tr = GetSelectedTrack(0, t_i)) ? (
GetTrackname(tr,#trackori);
GetTrackName(GetParentTrack(tr),#trackname);
GetSetMediaTrackInfo_String(tr, "P_NAME", strcat( strcat(#trackname,"_"),#trackori), 1);
);
t_i += 1;
);
Undo_EndBlock("Rename tracks", -1);
) : ShowConsoleMsg("Please select tracks");
);
main();
i made another one that renames only tracks when they are not folder itself.
you'll find it here