Old 04-18-2019, 11:54 AM   #1
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 10,271
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:

Code:
GetSet_LoopTimeRange(0, 0, TimeStart, TimeEnd, 0);
TimeStart != TimeEnd ? SetEditCurPos(TimeEnd, 0, 0); 
Undo_OnStateChange("Edit Cursor to end of Time Selection");
Code:
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.
__________________
foxyyymusic
foxAsteria is online now   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 08:58 AM.


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