// Script: setLoopEndToCurrentSection.ltgs // Description: Simple script to set selected loop end to selected Section in section viewer // The Section can be selected in the Structure view (CTR-U) or by // selecting the corresponding Section Marker // Arguments: // // Author : LoopToGo loadScript Looptogo\aliases.txt if $selectedSectionName // Check if a Section is selected if $selectedLoopName // Check if a loop is selected if $selectedSectionStart > $selectedLoopStart // Make sure section start is after loop start setLoopStartAndEnd $selectedLoopID $selectedLoopStart $selectedSectionStart endIf endIf endIf