Title
Checking interleaved box in Session Setup window - broken in PT 2024.3
What do you expect to happen when you run the script/macro?
This macro used to make sure "Interleaved" was checked in Session Setup. Stopped working when I updated to 2024.3.0
Are you seeing an error?
"Could not read value from element"
What happens when you run this script?
Opens window then gets error message
How were you running this script?
I used a Stream Deck button
How important is this issue to you?
5
Details
{ "inputExpected": "This macro used to make sure \"Interleaved\" was checked in Session Setup. Stopped working when I updated to 2024.3.0\n", "inputIsError": true, "inputError": "\"Could not read value from element\"\n", "inputWhatHappens": "Opens window then gets error message\n", "inputHowRun": { "key": "-MpfwmPg-2Sb-HxHQAff", "title": "I used a Stream Deck button" }, "inputImportance": 5, "inputTitle": "Checking interleaved box in Session Setup window - broken in PT 2024.3" }
Source
//Macro converted to script
sf.keyboard.press({
keys: "cmd+numpad 2",
});
sf.ui.proTools.windows.whoseTitle.is("Session Setup").first.groups.whoseTitle.is("Session Format").first.buttons.whoseTitle.is("CheckBox").first.checkboxSet({
targetValue: "Enable",
});
sf.keyboard.press({
keys: "cmd+numpad 2",
});
Links
User UID: FBLa5v2xxqUfy8frXnCX930H3JC2
Feedback Key: sffeedback:FBLa5v2xxqUfy8frXnCX930H3JC2:-Nt3af6lrvCdy6zK0Csi
Feedback ZIP: 9T1iU0klGO3JdpwXFfqhCmGj8YRGovu/aFgktunIC/U/zQDCxGqz+ET7Lix9R6p6z4kw9sXit94H3u3/QqYFQXSxSkJDRYBtXlwW1p1+AFEGVsxJvdbGAwXVSwPxCHAOmxKrDbfjIN0MJAVqXWKImc67KlnFjxJvmhBtwoms+Xy33XIqSiy4zCZy32/VzSAaaj4+N/jEqOnfzlPKgelGCUaykc575JV7SFqSGpc5yf7lfyIVD+qlaCCSePK1ehBWL++QVhPLYCB37HlVafY6nggu0No0svAFWteXL634Vuwg3D6UPb8jr1rzSKGnayptRL5Zvtn3VTXPQxGSSpggeg==
- In reply toEli_Crews⬆:Chris Shaw @Chris_Shaw2024-03-16 02:52:02.946Z
Hey @Eli_Crews,
This is definitely a bug.
If you're running PT 2023.12 or later and SF 5.7 or later you can use the new SDK command to set the interleave state. (No window will popup as the SDK command communicates directly with PT):sf.app.proTools.setSessionInterleavedState({ interleavedState: true })
Chris Shaw @Chris_Shaw2024-03-16 02:56:38.244Z
If not youcan use this::
sf.ui.proTools.appActivate() const setupWindow = sf.ui.proTools.windows.whoseTitle.is("Session Setup").first //Open session setup if necessary if (!setupWindow.exists) { sf.ui.proTools.menuClick({ menuPath: ["Setup", "Session"] }); } //Wait for session setup window setupWindow.elementWaitFor() setupWindow.invalidate() const interleaveBtn = setupWindow.groups.whoseTitle.is("Session Format").first.buttons.whoseTitle.is("CheckBox").first; //Check if checkbox is enabled if (!interleaveBtn.value.value) interleaveBtn.elementClick(); setupWindow.windowClose()