Old 10-18-2019, 01:55 PM   #1
Buy One
Human being with feelings
 
Buy One's Avatar
 
Join Date: Sep 2019
Posts: 1,146
Default Script to move edit cursor to start/end of time selection

Such script would simplify some tasks for custom actions affecting items. Didn't find anything suitable in ReaPack.

So just throwing the idea up in the air and maybe some kind lua programmer will be interested in creating one.

Last edited by Buy One; 10-18-2019 at 02:00 PM.
Buy One is offline   Reply With Quote
Old 10-18-2019, 02:00 PM   #2
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 10,272
Default

Code:
GetSet_LoopTimeRange(0, 0, TimeStart, TimeEnd, 0);
TimeStart!=TimeEnd ? SetEditCurPos(TimeStart, 0, 0);
Undo_OnStateChange("Edit Cursor to start of Time Selection");
Code:
GetSet_LoopTimeRange(0, 0, TimeStart, TimeEnd, 0);
TimeStart != TimeEnd ? SetEditCurPos(TimeEnd, 0, 0); 
Undo_OnStateChange("Edit Cursor to end of Time Selection");
It's eel and these are to move the edit cursor without also moving the playhead.
__________________
foxyyymusic

Last edited by foxAsteria; 10-18-2019 at 02:06 PM.
foxAsteria is offline   Reply With Quote
Old 10-18-2019, 02:07 PM   #3
Buy One
Human being with feelings
 
Buy One's Avatar
 
Join Date: Sep 2019
Posts: 1,146
Default

Quote:
Originally Posted by foxAsteria View Post
Code:
GetSet_LoopTimeRange(0, 0, TimeStart, TimeEnd, 0);
TimeStart!=TimeEnd ? SetEditCurPos(TimeStart, 0, 0);
Undo_OnStateChange("Edit Cursor to start of Time Selection");
Code:
GetSet_LoopTimeRange(0, 0, TimeStart, TimeEnd, 0);
TimeStart != TimeEnd ? SetEditCurPos(TimeEnd, 0, 0); 
Undo_OnStateChange("Edit Cursor to end of Time Selection");
it's eel.
That's great, thank you very much foxAsteria for kindness and swiftness, now i think i know why there has been no such script, looks too basic (not for me though).
Buy One is offline   Reply With Quote
Old 10-18-2019, 03:36 PM   #4
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 10,272
Default

Quote:
Originally Posted by Buy One View Post
looks too basic
You're welcome! Sad part is I can hardly even read it even though I'm pretty sure I wrote it. I musta had a lot of hand holding for it...
__________________
foxyyymusic
foxAsteria is offline   Reply With Quote
Old 12-27-2019, 03:38 PM   #5
Buy One
Human being with feelings
 
Buy One's Avatar
 
Join Date: Sep 2019
Posts: 1,146
Default

As it turns out there're native actions

Go to start of time selection
Got to end of time selection

I used wrong search term trying to find "move cursor" or the like

which fact nevertheless doesn't diminish my gratitude
Buy One is offline   Reply With Quote
Old 12-28-2019, 02:08 PM   #6
Triode
Human being with feelings
 
Triode's Avatar
 
Join Date: Jan 2012
Posts: 1,185
Default

I think the native actions also move the play head
__________________
Mixing / Brush and Beater Drums Online: www.outoftheboxsounds.com
Triode is offline   Reply With Quote
Old 12-28-2019, 02:51 PM   #7
Buy One
Human being with feelings
 
Buy One's Avatar
 
Join Date: Sep 2019
Posts: 1,146
Default

Quote:
Originally Posted by Triode View Post
I think the native actions also move the play head
Indeed they do, thank you for the info, didn't think of that. For my purposes however this is immaterial.
Buy One is offline   Reply With Quote
Old 02-29-2020, 02:30 PM   #8
Buy One
Human being with feelings
 
Buy One's Avatar
 
Join Date: Sep 2019
Posts: 1,146
Default

foxAsteria, found your official thread with the scripts via Stash

https://forum.cockos.com/showthread.php?t=132430
Buy One 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:42 PM.


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