Old 05-05-2021, 03:30 PM   #1
permeke
Human being with feelings
 
Join Date: Dec 2019
Posts: 589
Default loop follows item / edits etc

Is there something like a loop lock to item function ?

for instance when I loop an item and I drag it round, I would like to have the loop selection the item position.
Same for when I stretch the chosen ietm.
permeke is offline   Reply With Quote
Old 05-08-2021, 08:49 PM   #2
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default

Do you just want the time selection to follow the item as you move it or stretch it ?

If so, If you don't have it you will need to install Lokasenna GUI or via ReaPack
and run Library/Set Lokasenna_GUI v2 library path.lua
Right click Save Link/Target As
selection follows item.lua

To adjust refresh:
Code:
GUI.func = active
-- GUI.func will run on every loop
-- Use this to set the poll time in seconds:
GUI.freq = .5
Full Screen
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak
MusoBob is offline   Reply With Quote
Old 05-09-2021, 02:16 PM   #3
permeke
Human being with feelings
 
Join Date: Dec 2019
Posts: 589
Default

hey that's cool.
Will try it , thanks !
permeke is offline   Reply With Quote
Old 05-09-2021, 02:24 PM   #4
permeke
Human being with feelings
 
Join Date: Dec 2019
Posts: 589
Default

hey that's cool. I was looking in the action list for loop follows item instead.
Will try it , thanks !
permeke is offline   Reply With Quote
Old 05-10-2021, 12:55 PM   #5
permeke
Human being with feelings
 
Join Date: Dec 2019
Posts: 589
Default

Would it be possible to block that popup window and make it an action on/off state so I can assign it to a menu button ?
I've tried but the popup keeps coming back and my button doesn't stay activated.
Sorry if this is a general scripting question, but it's the first time I'm trying something like this
permeke is offline   Reply With Quote
Old 05-10-2021, 05:37 PM   #6
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default

There might be a better way but you can try this for now, if you run the script again it should ask to Terminate and you can get it to remember that. The script edit window needs to be closed and run it from the Action list.
Code:
local clock = os.clock
function sleep(n)  -- seconds
  local t0 = clock()
  while clock() - t0 <= n do end
end

function wait_for()
  sleep(.1)
  reaper.Main_OnCommand(40290, 0) -- Time selection: Set time selection to items
    
  reaper.defer(wait_for)
end


wait_for()
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak
MusoBob is offline   Reply With Quote
Old 06-07-2021, 12:37 PM   #7
permeke
Human being with feelings
 
Join Date: Dec 2019
Posts: 589
Default

thanks
permeke is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:23 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.