Old 10-18-2019, 01:55 PM   #1
Buy One
Human being with feelings
 
Join Date: Sep 2019
Posts: 32
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: 7,145
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.
__________________
Myyy Wyyyrd Music

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
 
Join Date: Sep 2019
Posts: 32
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: 7,145
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...
__________________
Myyy Wyyyrd Music
foxAsteria 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 06:29 PM.


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