Title
Split Selected Clip(s) at Markers no longer working
What do you expect to happen when you run the script/macro?
The script is supposed split any selected clips at the contained memeory location markers. It has worked in the past.
Are you seeing an error?
The error is visible in the Soundflow log
What happens when you run this script?
The clip separates at the first contained marker, but then starts to loop. The end result is that I have to force quite Protools to regain control of my system.
How were you running this script?
I used a Stream Deck button
How important is this issue to you?
5
Details
{ "inputExpected": "The script is supposed split any selected clips at the contained memeory location markers. It has worked in the past.", "inputIsError": true, "inputError": "The error is visible in the Soundflow log", "inputWhatHappens": "The clip separates at the first contained marker, but then starts to loop. The end result is that I have to force quite Protools to regain control of my system.", "inputHowRun": { "key": "-MpfwmPg-2Sb-HxHQAff", "title": "I used a Stream Deck button" }, "inputImportance": 5, "inputTitle": "Split Selected Clip(s) at Markers no longer working" }
Source
//Store original selection
let originalSelection = sf.ui.proTools.selectionGet();
let originalSelectionSamples = sf.ui.proTools.selectionGetInSamples();
//Ensure the user has actually made a selection within which we should operate
if (originalSelectionSamples.selectionLength === 0)
throw `Please make a selection before running this script`;
try {
//Collapse selection to the left hand side
sf.ui.proTools.selectionSet({
selectionStart: originalSelection.selectionStart,
selectionEnd: originalSelection.selectionStart,
});
//Perform an endless loop
while (true) {
//Go to the next memory location
let goRes = sf.ui.proTools.memoryLocationsGotoDelta({
delta: 1,
onError: 'Continue',
});
//If we didn't find a next memory location, just abort the loop
if (!goRes.success)
break;
//Retrieve the selection at this point
let newSelection = sf.ui.proTools.selectionGet();
//If we're now further to the right than the original selection,
//break the loop
if (newSelection.selectionStart > originalSelection.selectionEnd)
break;
//Otherwise, click Separate Clip At Selection, and continue the loop
//also - if for some reason we're in between clips we're allowing the menu click to fail silently
sf.ui.proTools.menuClick({
menuPath: ["Edit", "Separate Clip", "At Selection"],
onError: 'Continue',
});
//Continue the loop
}
} finally {
//Finally, regardless of any error occurring in the previous code,
//restore the original selection
sf.ui.proTools.selectionSetInSamples({
selectionStart: originalSelectionSamples.selectionStart,
selectionEnd: originalSelectionSamples.selectionEnd,
});
}
Links
User UID: ffOQxGthnwRyihQfBqeQzvnMgeg2
Feedback Key: sffeedback:ffOQxGthnwRyihQfBqeQzvnMgeg2:-NiLLR14jsjIHFzy3RYg
Feedback ZIP: MRvcaKiz15uyd3rRKOAMSP0mj8RKxpf0iI9icBrN1k5ZEdlXBwzt1IQF8jxN0SYvWTZKtLJ0EeT3XIXrSiA3fGQ97zB9388WlYT4uAWzv2NES1csYHFY8xv+ERcBDPIq8a0JFBrHP9X2SyEsw8YQpA7b0Qt+3q6K7pRvOVCQCB6e4dnR9f4HIqJcrOH2DU3ukhuCiTb2BVF73qceh9Jms9N4zwXZRDc01Sk0CehlQYYdc34fKa7qDCdKxUghAoxI+WaeaCVM1JElagAW5EQvFcgj+8qPMx8uQyxdT1UHiTJ3bYKtwZ0MtoEVM5Mpb0hTunHoFxB8hwBgpXQ14T1mEA==
- Brenden @nednednerb
Did you update MacOS to Sonoma recently?
According to other posts on the forum, and word from the developers, this could be an issue.
More than a few are waiting patiently for updates.I happened to update to Sonoma, and some scripts or macros I have used continue to work, but others are malfunctioning. Maybe your issue is different.
- BBill Higley @Bill_Higley
No, I'm still on Ventura, 13.3. I have recently updated to ProTools 2023.9, but this function was working properly on my old system with the same combination (13.3&2023.9). The only difference is now I'm on Apple Silicon with a Mac Studio.
- In reply tonednednerb⬆:BBill Higley @Bill_Higley
I have found the problem. It's actually ProTools 2023.9. I thought I had used this script after I updated my old system from 2023.6, but must not have. I was working out of a different room while my room was being rebuilt and that added to the confusion. In any case, to test, I re-installed 2023.6 and the script worked properly. I'll just sit tight and wait for the next Soundflow update. Apologies for the unnecessary report.
- JJóhannes Bragi Bjarnason @Johannes_Bragi_Bjarn
Hi hi - have you found a solution?
- BBill Higley @Bill_Higley
There was a Soundflow update shortly after I posted that fixed it, but there's a more recent update from 2/21, Version 5.6.1.