hi there, i have a problem with my script. I only want to work with FocusLock but i could not find out how to "deselect" the track, where you are clicking.
This causes trouble to my script, because if you start a recording with this script on a focusLocked and (!) selected track, it records about 150ms or so.
If you record on a focusLocked track while the selected track is another one, there is no problem at all...
if i delete the sustain-function it works...
what is my error?
This causes trouble to my script, because if you start a recording with this script on a focusLocked and (!) selected track, it records about 150ms or so.
If you record on a focusLocked track while the selected track is another one, there is no problem at all...
if i delete the sustain-function it works...
what is my error?
Code:
!name FocusRecord
!quantize
!multiclick 300
!sustain 500
for *
if focusLock
if mode = reset
record
message RECORD
elseif mode = record
overdub
message OVERDUB
elseif mode = play
overdub
message OVERDUB
elseif mode = overdub
play
message PLAY
endif
endif
next
Label sustain
if sustainCount = 1
for *
if focusLock
reset
message RESET
endif
next
endif
Label click
if clickCount = 1
for *
if focusLock
undo
message UNDO
endif
next
endif
FocusLock vs. Selected Track ? oneButton Script
0 commentaires:
Enregistrer un commentaire