// Script: setLoopStartToCurrentSection.ltgs // Description: Simple script to set selected loop start 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 < $selectedLoopEnd // Make sure section start is after loop start setLoopStartAndEnd $selectedLoopID $selectedSectionStart $selectedLoopEnd endIf endIf endIf