|
|
|
10-18-2019, 01:55 PM
|
#1
|
Human being with feelings
Join Date: Sep 2019
Posts: 1,146
|
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.
|
|
|
10-18-2019, 02:00 PM
|
#2
|
Human being with feelings
Join Date: Dec 2009
Location: Oblivion
Posts: 10,272
|
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.
Last edited by foxAsteria; 10-18-2019 at 02:06 PM.
|
|
|
10-18-2019, 02:07 PM
|
#3
|
Human being with feelings
Join Date: Sep 2019
Posts: 1,146
|
Quote:
Originally Posted by foxAsteria
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).
|
|
|
10-18-2019, 03:36 PM
|
#4
|
Human being with feelings
Join Date: Dec 2009
Location: Oblivion
Posts: 10,272
|
Quote:
Originally Posted by Buy One
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...
|
|
|
12-27-2019, 03:38 PM
|
#5
|
Human being with feelings
Join Date: Sep 2019
Posts: 1,146
|
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
|
|
|
12-28-2019, 02:08 PM
|
#6
|
Human being with feelings
Join Date: Jan 2012
Posts: 1,185
|
I think the native actions also move the play head
|
|
|
12-28-2019, 02:51 PM
|
#7
|
Human being with feelings
Join Date: Sep 2019
Posts: 1,146
|
Quote:
Originally Posted by Triode
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.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 04:42 PM.
|