Copy and Paste to new channel
Title
Copy and Paste to new channel
What do you expect to happen when you run the script/macro?
Hey!
This is a macro that will copy the clip on a channel and paste it to a set of pre-made tracks in my template and then goes back to the track i was working on.
At the minute it jumps down to the track i want and back again it to but doesnt seem to paste. The issue seems to be with the copy and paste function.
I have tried using 'press keys' for the copy and paste and using menu clicks but have the same issue with both
thanks in advance!
Joe.
Are you seeing an error?
What happens when you run this script?
sorry! i explained this in the first note!
How were you running this script?
I used a Stream Deck button
How important is this issue to you?
4
Details
{ "inputExpected": "Hey!\n\nThis is a macro that will copy the clip on a channel and paste it to a set of pre-made tracks in my template and then goes back to the track i was working on.\n\nAt the minute it jumps down to the track i want and back again it to but doesnt seem to paste. The issue seems to be with the copy and paste function.\n\nI have tried using 'press keys' for the copy and paste and using menu clicks but have the same issue with both\n\nthanks in advance!\nJoe.", "inputIsError": false, "inputWhatHappens": "sorry! i explained this in the first note!", "inputHowRun": { "key": "-MpfwmPg-2Sb-HxHQAff", "title": "I used a Stream Deck button" }, "inputImportance": 4, "inputTitle": "Copy and Paste to new channel" }
Source
//Macro converted to script
const firstSelectedTrackHeader = sf.proTools.trackGetFirstSelectedTrackHeader().firstSelectedTrackHeader;
sf.keyboard.press({
keys: "cmd+c",
});
sf.ui.proTools.trackGetByName({ name: "• dropfx dly1-2_throw", makeVisible: true }).track.trackSelect({
executionMode: "Background",
onCancel: "Abort",
});
sf.keyboard.press({
keys: "cmd+v",
});
firstSelectedTrackHeader.trackSelect();
Links
User UID: oFSHsSUQ3KdnPd9qrQmyunuddrg1
Feedback Key: sffeedback:oFSHsSUQ3KdnPd9qrQmyunuddrg1:-N0Btr-wPHLmVLchpbcj
- OOwen Granich-Young @Owen_Granich_Young
Hey Joe, Check out my 'AAF Organizer' Package in the store - You want the Paste to Track Variable template.
Create new user presets and name your tracks.
Bests,
Owen- JJoe Kearns @Joe_Kearns
Thanks Owen, will check this out as it is probably more sophisticated than my version!
thanks!
Joe.
- In reply toJoe_Kearns⬆:Christian Scheuer @chrscheuer2022-04-21 22:40:03.753Z
It's possible you'll need to tell Pro Tools to update its "Paste" menu before it's clickable.
You could try inserting a keystroke like "left" (left key) before pasting, to make sure the menu is updated (PT reacts to key presses and updates its menus accordingly). And definitely would recommend switching to Edit->Copy and Paste via the menu as that should generally work better (once you figure out the bug)- JJoe Kearns @Joe_Kearns
Genius as Usual Christian!
This works great
thank you