![]() If you want the edit cursor to track the edge of the item, get the script to check there is only one item selected (else which edge does it follow?), then as the right-hand edge is trimmed, it's easy enough to work out the timeline position of the edge and write that to the edit cursor.Ĭreate two left/right mirrored versions of the script and assign them to the modified J and K of your choice and you're up and running. This way, doing a modifier like Ctrl-Shift won't move the cursor at all during use, but it won't trigger the action that moves the cursor, just the action that trims your item edge. Setting the base keys for left and right gives you a complete set of modifiers free to use for a range of actions -vanilla, custom or script. If you want to trim with it, you need to set the jog to "J" and "K" for left/right and then use modifiers of those (eg Ctrl-shift-J and Ctrl-Shift-K) to fire two scripts to move your item edges. It's in addition to your mouse, it's a facsimile of the transport jog and/or shuttle wheels that used to be found on editing VTRs. It's used to move the cursor in audio and video apps, plus it has a bunch of buttons for transport, split, undo, whatever. It's a Jog/Shuttle controller, jog wheel in the middle and sprung shuttle ring around it. Reaper.Main_OnCommand(40290,0) - 40290 set time selection from selected items Reaper.ApplyNudge(0, 2, 0, 2, val, false, 0) - move edit cursor right be 1 frame The second script simply moves an item and keeps the edit cursor/playhead bolted to the front edge of the item by creating a time selection from it. Reaper.Main_OnCommand(40626,0) - Time Selection: set end point Reaper.ApplyNudge(0, 2, 6, 18, val, false, 0) - move edit cursor right be 1 frame Reaper.Main_OnCommand(40631,0) - go to end of time selection If val 0 then - move time selection end point left by 1 frame Local is_new_value, filename, sectionID, cmdID, mode, resolution, val = reaper.get_action_context() The first changes the right-hand edge of a time selection, while the edit cursor/playhead follows, so the video thus follows as well. ![]() I'll likely try to follow my approach in these two little scripts. What I need to figure out is how to keep the edit cursor/playhead in the same place as the right hand edge of the selected item. Left-dragging the right hand edge of an item with the mouse is trimming the right side of the item. ![]()
0 Comments
Leave a Reply. |