Toggle PreRoll preset not working
Desired Workflow
For it to work
Question
The Toggle Pre-Roll preset is not working in ProTools this morning. I get this error message: Toggle Pre-Roll failed System:Exception: Parents UIElement was null: at SoundFlow:Shortcuts.Ax.AxNodes.AxNode. RequireP.....
Command Info
ID: proTools.transport.preRoll.toggle
Name: Toggle Pre-Roll
Source
undefined
Links
User UID: iG2OvCZJcWSvwDquWBZPmJT3vHc2
Feedback Key: sffeedback:iG2OvCZJcWSvwDquWBZPmJT3vHc2:-MY5xrCqGIjUZxxgGzoY
- Christian Scheuer @chrscheuer2021-04-12 17:11:20.401Z
Hi Mark,
I think there's a chance this could be related to your transport view not being visible. Can you share a screenshot of the session (potentially scrolled away from audio so it doesn't reveal any secret info)?
- MIn reply toMark_Mangini⬆:Mark Mangini @Mark_Mangini
Doesn't seem to make a difference if I have the transport window open or not.
Christian Scheuer @chrscheuer2021-04-12 17:27:27.205Z
It's the Expanded Transport in the top bar it's missing, IIRC:
- MIn reply toMark_Mangini⬆:Mark Mangini @Mark_Mangini
What is IIRC? Does this command only work when the Expanded Transport is displayed? If so, it would be most convenient that not to matter. Is that possible?
- MMark Mangini @Mark_Mangini
I turned on Expanded Transport in my PT header and the Macro still doesn't work.
- In reply toMark_Mangini⬆:
Christian Scheuer @chrscheuer2021-04-12 18:37:04.808Z
IIRC = if I recall correctly :)
- MIn reply toMark_Mangini⬆:Mark Mangini @Mark_Mangini
I have the Expanded Transport showing and the Macro still doesn't work.
Christian Scheuer @chrscheuer2021-04-12 19:48:08.809Z
Hi Mark. I think this can happen due to SoundFlow's cache not being correctly invalidated in this case. Restarting SF after you've shown the Expanded Transport should make it work again.
I'll log a bug report for this.- MMark Mangini @Mark_Mangini
Yes. That fixed it. Be great if this Macro did some IF/ELSE work so that if the session was not displaying the Expanded Transport, it simply entered CMND 1 to open the floating transport and enabled/disabled PreRoll. Just to take all the thinking out of whether your session is displaying the way the macro things it should.
Christian Scheuer @chrscheuer2021-04-12 20:45:59.555Z
Completely agree!
- In reply toMark_Mangini⬆:
Kitch Membery @Kitch2021-04-17 01:19:37.845Z
The following script will ensure that the "Expanded Transport" is visible before toggling the Pre-Roll.
I hope that helps. This version is a little more robust than what we implemented the other day on our call.
function openExpandedTransport() { //Activate Protools Main Window sf.ui.proTools.appActivateMainWindow(); const transportViewCluster = sf.ui.proTools.mainWindow.groups.whoseTitle.is("Transport View Cluster").first; const transportViewDisplay = transportViewCluster.groups.whoseTitle.is("Transport Display").first; if (!transportViewDisplay.buttons.whoseTitle.is("Pre-roll enable").first.exists) { //Ensure Transport Cluster is visible sf.ui.proTools.transportEnsureCluster(); //Open Expanded Transport sf.ui.proTools.mainWindow.buttons.whoseTitle.is("ToolbarOptionsMenu").first.popupMenuSelect({ menuPath: ["Expanded Transport"], }); } //Close Popup Menu sf.ui.proTools.appActivateMainWindow(); } function main() { //Open Expanded Transport openExpandedTransport() const transportViewCluster = sf.ui.proTools.mainWindow.groups.whoseTitle.is("Transport View Cluster").first; const transportViewDisplay = transportViewCluster.groups.whoseTitle.is("Transport Display").first; //Toggle Pre-Roll transportViewDisplay.buttons.whoseTitle.is("Pre-roll enable").first.elementClick(); } main();