Prev Previous Post   Next Post Next
Old 04-18-2019, 11:54 AM   #1
Human being with feelings
foxAsteria's Avatar
Join Date: Dec 2009
Location: Oblivion
Posts: 7,120
Default Help, my scripts are trash!

Once upon a time I tried to learn script. I got far enough to make these two with a lot of hand-holding but by now this all looks like gibberish to me again:

GetSet_LoopTimeRange(0, 0, TimeStart, TimeEnd, 0);
TimeStart != TimeEnd ? SetEditCurPos(TimeEnd, 0, 0); 
Undo_OnStateChange("Edit Cursor to end of Time Selection");
GetSet_LoopTimeRange(0, 0, TimeStart, TimeEnd, 0);
TimeStart!=TimeEnd ? SetEditCurPos(TimeStart, 0, 0);
Undo_OnStateChange("Edit Cursor to start of Time Selection");
Problem is, in some recording situations (which I can't reliably reproduce), while stopped I'll have record starting from the last play position instead of the edit cursor postion. I'm fairly certain it's due to these janky scripts I made.

These scripts are intended to allow moving the edit cursor to the time selection during playback without interrupting playback. Can some smart coder help me idiot-proof/re-write these?

Perhaps what I need is an additional script I can add to other actions (like record) to ensure the play cursor position is the same as the edit cursor's?

I hope this is not too confusing, thanks.
Myy Wyyrd Muzyyk
foxAsteria is offline   Reply With Quote

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 11:29 PM.

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